llvm::isSafeToLoadUnconditionally

Return true if we know that executing a load from this value cannot trap.

Synopses

Declared in <llvm/Analysis/Loads.h>

Return true if we know that executing a load from this value cannot trap.

bool
isSafeToLoadUnconditionally(
    Value* V,
    Align Alignment,
    APInt const& Size,
    SimplifyQuery const& SQ);
» more...

Return true if we know that executing a load from this value cannot trap.

bool
isSafeToLoadUnconditionally(
    Value* V,
    Type* Ty,
    Align Alignment,
    SimplifyQuery const& SQ);
» more...

Return Value

True if executing a load from this value cannot trap.

Parameters

NameDescription
VPointer value to load from.
AlignmentAlignment of the prospective load.
SizeSize in bytes of the prospective load.
SQQuery providing data layout and optional context instruction.
TyType of the prospective load, used to determine size.