ΒΆbool IsConstantOffsetFromGlobal(
    llvm::Constant* C,
    llvm::GlobalValue*& GV,
    llvm::APInt& Offset,
    const llvm::DataLayout& DL)

Description

If this constant is a constant offset from a global, return the global and the constant. Because of constantexprs, this function is recursive.

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

Parameters

llvm::Constant* C
llvm::GlobalValue*& GV
llvm::APInt& Offset
const llvm::DataLayout& DL