LLVM 20.0.0git
Public Member Functions | List of all members
LiveDebugValues::DebugVariableMap Class Reference

Mapping from DebugVariable to/from a unique identifying number. More...

#include "CodeGen/LiveDebugValues/InstrRefBasedImpl.h"

Public Member Functions

DebugVariableID getDVID (const DebugVariable &Var) const
 
DebugVariableID insertDVID (DebugVariable &Var, const DILocation *Loc)
 
const VarAndLoclookupDVID (DebugVariableID ID) const
 
void clear ()
 

Detailed Description

Mapping from DebugVariable to/from a unique identifying number.

Each DebugVariable consists of three pointers, and after a small amount of work to identify overlapping fragments of variables we mostly only use DebugVariables as identities of variables. It's much more compile-time efficient to use an ID number instead, which this class provides.

Definition at line 46 of file InstrRefBasedImpl.h.

Member Function Documentation

◆ clear()

void LiveDebugValues::DebugVariableMap::clear ( )
inline

◆ getDVID()

DebugVariableID LiveDebugValues::DebugVariableMap::getDVID ( const DebugVariable Var) const
inline

◆ insertDVID()

DebugVariableID LiveDebugValues::DebugVariableMap::insertDVID ( DebugVariable Var,
const DILocation Loc 
)
inline

◆ lookupDVID()

const VarAndLoc & LiveDebugValues::DebugVariableMap::lookupDVID ( DebugVariableID  ID) const
inline

The documentation for this class was generated from the following file: