llvm::DebugValueUser

Base class for tracking ValueAsMetadata/DIArgLists with user lookups and Owner callbacks outside of ValueAsMetadata.

Synopsis

Declared in <llvm/IR/Metadata.h>

class DebugValueUser;

Description

Currently only inherited by DbgVariableRecord; if other classes need to use it, then a SubclassID will need to be added (either as a new field or by making DebugValue into a PointerIntUnion) to discriminate between the subclasses in lookup and callback handling.

Member Functions

NameDescription
DebugValueUser [constructor]Constructors
~DebugValueUser [destructor]Untrack debug-value operands on destruction.
operator= Assignment operators
getUser Return the owning DbgVariableRecord that holds these debug-value operands.
handleChangedValue Update a tracked debug-value pointer after RAUW.
resetDebugValue Replace the debug-value operand at Idx with DebugValue.
resetDebugValues Clear and untrack all debug-value operands.
operator== Return true if the tracked debug-value operands equal those of X.
operator!= Return true if the tracked debug-value operands differ from X.

Protected Member Functions

NameDescription
getDebugValues Return the tracked debug-value metadata operands.

Protected Data Members

NameDescription
DebugValues Tracked debug-value metadata operands (up to three).