ΒΆllvm::Value* getMemInstValueForLoad(
    llvm::MemIntrinsic* SrcInst,
    unsigned int Offset,
    llvm::Type* LoadTy,
    llvm::Instruction* InsertPt,
    const llvm::DataLayout& DL)

Description

If analyzeLoadFromClobberingMemInst returned an offset, this function can be used to actually perform the extraction of the bits from the memory intrinsic. It inserts instructions to do so at InsertPt, and returns the extracted value.

Declared at: llvm/include/llvm/Transforms/Utils/VNCoercion.h:98

Parameters

llvm::MemIntrinsic* SrcInst
unsigned int Offset
llvm::Type* LoadTy
llvm::Instruction* InsertPt
const llvm::DataLayout& DL