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