Thanks to visit codestin.com
Credit goes to llvm.org

LLVM 22.0.0git
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 47 of file InstrRefBasedImpl.h.

Member Function Documentation

◆ clear()

void LiveDebugValues::DebugVariableMap::clear ( )
inline

Definition at line 71 of file InstrRefBasedImpl.h.

◆ getDVID()

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

Definition at line 52 of file InstrRefBasedImpl.h.

References assert().

◆ insertDVID()

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

Definition at line 58 of file InstrRefBasedImpl.h.

References Size.

◆ lookupDVID()

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

Definition at line 69 of file InstrRefBasedImpl.h.


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