llvm::findAllocaForValue

Const overload of findAllocaForValue.

Synopsis

Declared in <llvm/Analysis/ValueTracking.h>

AllocaInst const*
findAllocaForValue(
    Value const* V,
    bool OffsetZero = false);

Return Value

Unique source alloca, or null if none/ambiguous.

Parameters

NameDescription
VValue that may derive from an alloca.
OffsetZeroRequire V to point at the start of the alloca.