This function determines whether a value for the pointer LoadPtr can be extracted from the load at DepLI.
Synopsis
Declared in <llvm/Transforms/Utils/VNCoercion.h>
int
analyzeLoadFromClobberingLoad(
Type* LoadTy,
Value* LoadPtr,
LoadInst* DepLI,
DataLayout const& DL);
Description
On success, it returns the offset into DepLI that extraction would start. On failure, it returns ‐1.
Return Value
Offset into DepLI 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. |
DepLI |
Load that may clobber the loaded location. |
DL |
Data layout used for size and offset calculations. |
Created with MrDocs