ΒΆint analyzeLoadFromClobberingStore(
llvm::Type* LoadTy,
llvm::Value* LoadPtr,
llvm::StoreInst* DepSI,
const llvm::DataLayout& DL)
int analyzeLoadFromClobberingStore(
llvm::Type* LoadTy,
llvm::Value* LoadPtr,
llvm::StoreInst* DepSI,
const llvm::DataLayout& DL)
Description
This function determines whether a value for the pointer LoadPtr can be extracted from the store at DepSI. On success, it returns the offset into DepSI that extraction would start. On failure, it returns -1.
Declared at: llvm/include/llvm/Transforms/Utils/VNCoercion.h:54
Parameters
- llvm::Type* LoadTy
- llvm::Value* LoadPtr
- llvm::StoreInst* DepSI
- const llvm::DataLayout& DL