ΒΆllvm::Value* getLoadValueForLoad(
    llvm::LoadInst* SrcVal,
    unsigned int Offset,
    llvm::Type* LoadTy,
    llvm::Instruction* InsertPt,
    const llvm::DataLayout& DL)

Description

If analyzeLoadFromClobberingLoad returned an offset, this function can be used to actually perform the extraction of the bits from the load, including any necessary load widening. It inserts instructions to do so at InsertPt, and returns the extracted value.

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

Parameters

llvm::LoadInst* SrcVal
unsigned int Offset
llvm::Type* LoadTy
llvm::Instruction* InsertPt
const llvm::DataLayout& DL