ΒΆllvm::Value* getStoreValueForLoad(
llvm::Value* SrcVal,
unsigned int Offset,
llvm::Type* LoadTy,
llvm::Instruction* InsertPt,
const llvm::DataLayout& DL)
llvm::Value* getStoreValueForLoad(
llvm::Value* SrcVal,
unsigned int Offset,
llvm::Type* LoadTy,
llvm::Instruction* InsertPt,
const llvm::DataLayout& DL)
Description
If analyzeLoadFromClobberingStore returned an offset, this function can be used to actually perform the extraction of the bits from the store. It inserts instructions to do so at InsertPt, and returns the extracted value.
Declared at: llvm/include/llvm/Transforms/Utils/VNCoercion.h:76
Parameters
- llvm::Value* SrcVal
- unsigned int Offset
- llvm::Type* LoadTy
- llvm::Instruction* InsertPt
- const llvm::DataLayout& DL