ΒΆconst llvm::Value* getUnderlyingObject(
    const llvm::Value* V,
    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:372

Parameters

const llvm::Value* V
unsigned int MaxLookup = 6