This function determines whether a value for the pointer LoadPtr can be extracted from the memory intrinsic at DepMI.

Synopsis

Declared in <llvm/Transforms/Utils/VNCoercion.h>

int
analyzeLoadFromClobberingMemInst(
    Type* LoadTy,
    Value* LoadPtr,
    MemIntrinsic* DepMI,
    DataLayout const& DL);

Description

On success, it returns the offset into DepMI that extraction would start. On failure, it returns ‐1.

Return Value

Offset into DepMI at which extraction would start, or ‐1 on failure.

Parameters

Name

Description

LoadTy

Type of the load being analyzed.

LoadPtr

Pointer operand of the load.

DepMI

Memory intrinsic that may clobber the loaded location.

DL

Data layout used for size and offset calculations.

Created with MrDocs