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