LLVM 20.0.0git
Public Types | Public Member Functions | List of all members
llvm::DbgLabelInstrMap Class Reference

For each inlined instance of a source-level label, keep the corresponding DBG_LABEL instruction. More...

#include "llvm/CodeGen/DbgEntityHistoryCalculator.h"

Public Types

using InlinedEntity = std::pair< const DINode *, const DILocation * >
 
using InstrMap = MapVector< InlinedEntity, const MachineInstr * >
 

Public Member Functions

void addInstr (InlinedEntity Label, const MachineInstr &MI)
 
bool empty () const
 
void clear ()
 
InstrMap::const_iterator begin () const
 
InstrMap::const_iterator end () const
 

Detailed Description

For each inlined instance of a source-level label, keep the corresponding DBG_LABEL instruction.

The DBG_LABEL instruction could be used to generate a temporary (assembler) label before it.

Definition at line 132 of file DbgEntityHistoryCalculator.h.

Member Typedef Documentation

◆ InlinedEntity

Definition at line 134 of file DbgEntityHistoryCalculator.h.

◆ InstrMap

Definition at line 135 of file DbgEntityHistoryCalculator.h.

Member Function Documentation

◆ addInstr()

void DbgLabelInstrMap::addInstr ( InlinedEntity  Label,
const MachineInstr MI 
)

Definition at line 283 of file DbgEntityHistoryCalculator.cpp.

References assert(), and MI.

Referenced by llvm::calculateDbgEntityHistory().

◆ begin()

InstrMap::const_iterator llvm::DbgLabelInstrMap::begin ( ) const
inline

◆ clear()

void llvm::DbgLabelInstrMap::clear ( )
inline

◆ empty()

bool llvm::DbgLabelInstrMap::empty ( ) const
inline

◆ end()

InstrMap::const_iterator llvm::DbgLabelInstrMap::end ( ) const
inline

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