ΒΆllvm::Value* GetUnderlyingObject(
llvm::Value* V,
const llvm::DataLayout& DL,
unsigned int MaxLookup = 6)
llvm::Value* GetUnderlyingObject(
llvm::Value* V,
const llvm::DataLayout& DL,
unsigned int MaxLookup = 6)
Description
This method strips off any GEP address adjustments and pointer casts from the specified value, returning the original object being addressed. Note that the returned value has pointer type if the specified value does. If the MaxLookup value is non-zero, it limits the number of instructions to be stripped off.
Declared at: llvm/include/llvm/Analysis/ValueTracking.h:344
Parameters
- llvm::Value* V
- const llvm::DataLayout& DL
- unsigned int MaxLookup = 6