findAllocaForValue overloads

Synopses

Declared in <llvm/Analysis/ValueTracking.h>

Returns unique alloca where the value comes from, or nullptr. If OffsetZero is true check that V points to the begining of the alloca.

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

Const overload of findAllocaForValue.

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

Return Value

Unique source alloca, or null if none/ambiguous.

Parameters

Name

Description

V

Value that may derive from an alloca.

OffsetZero

Require V to point at the start of the alloca.

Created with MrDocs