ΒΆllvm::Constant* ConstantFoldLoadFromConst(
    llvm::Constant* C,
    llvm::Type* Ty,
    const llvm::APInt& Offset,
    const llvm::DataLayout& DL)

Description

Extract value of C at the given Offset reinterpreted as Ty. If bits past the end of C are accessed, they are assumed to be poison.

Declared at: llvm/include/llvm/Analysis/ConstantFolding.h:149

Parameters

llvm::Constant* C
llvm::Type* Ty
const llvm::APInt& Offset
const llvm::DataLayout& DL