ΒΆinline llvm::Value*
GetPointerBaseWithConstantOffset(
llvm::Value* Ptr,
int64_t& Offset,
const llvm::DataLayout& DL,
bool AllowNonInbounds = true)
inline llvm::Value*
GetPointerBaseWithConstantOffset(
llvm::Value* Ptr,
int64_t& Offset,
const llvm::DataLayout& DL,
bool AllowNonInbounds = true)
Description
Analyze the specified pointer to see if it can be expressed as a base pointer plus a constant offset. Return the base and offset to the caller. This is a wrapper around Value::stripAndAccumulateConstantOffsets that creates and later unpacks the required APInt.
Declared at: llvm/include/llvm/Analysis/ValueTracking.h:250
Parameters
- llvm::Value* Ptr
- int64_t& Offset
- const llvm::DataLayout& DL
- bool AllowNonInbounds = true