|
LLVM
10.0.0
|
For each user variable, keep a list of instruction ranges where this variable is accessible. More...
#include "llvm/CodeGen/DbgEntityHistoryCalculator.h"
Classes | |
| class | Entry |
| Specifies a change in a variable's debug value history. More... | |
Public Types | |
| typedef size_t | EntryIndex |
| Index in the entry vector. More... | |
| using | Entries = SmallVector< Entry, 4 > |
| using | InlinedEntity = std::pair< const DINode *, const DILocation * > |
| using | EntriesMap = MapVector< InlinedEntity, Entries > |
Public Member Functions | |
| bool | startDbgValue (InlinedEntity Var, const MachineInstr &MI, EntryIndex &NewIndex) |
| EntryIndex | startClobber (InlinedEntity Var, const MachineInstr &MI) |
| Entry & | getEntry (InlinedEntity Var, EntryIndex Index) |
| bool | empty () const |
| void | clear () |
| EntriesMap::const_iterator | begin () const |
| EntriesMap::const_iterator | end () const |
| LLVM_DUMP_METHOD void | dump () const |
Static Public Attributes | |
| static const EntryIndex | NoEntry = std::numeric_limits<EntryIndex>::max() |
| Special value to indicate that an entry is valid until the end of the function. More... | |
For each user variable, keep a list of instruction ranges where this variable is accessible.
The variables are listed in order of appearance.
Definition at line 27 of file DbgEntityHistoryCalculator.h.
| using llvm::DbgValueHistoryMap::Entries = SmallVector<Entry, 4> |
Definition at line 74 of file DbgEntityHistoryCalculator.h.
Definition at line 76 of file DbgEntityHistoryCalculator.h.
Index in the entry vector.
Definition at line 30 of file DbgEntityHistoryCalculator.h.
| using llvm::DbgValueHistoryMap::InlinedEntity = std::pair<const DINode *, const DILocation *> |
Definition at line 75 of file DbgEntityHistoryCalculator.h.
|
inline |
Definition at line 93 of file DbgEntityHistoryCalculator.h.
References llvm::MapVector< KeyT, ValueT, MapType, VectorType >::begin().
|
inline |
Definition at line 92 of file DbgEntityHistoryCalculator.h.
References llvm::MapVector< KeyT, ValueT, MapType, VectorType >::clear().
Referenced by llvm::DebugHandlerBase::endFunction().
| LLVM_DUMP_METHOD void DbgValueHistoryMap::dump | ( | ) | const |
Definition at line 340 of file DbgEntityHistoryCalculator.cpp.
References llvm::dbgs(), E, llvm::enumerate(), llvm::DbgValueHistoryMap::Entry::getEndIndex(), llvm::DbgValueHistoryMap::Entry::getInstr(), llvm::DIVariable::getName(), llvm::DbgValueHistoryMap::Entry::isDbgValue(), llvm::lltok::LocalVar, and NoEntry.
Referenced by llvm::DebugHandlerBase::beginFunction(), and end().
|
inline |
Definition at line 91 of file DbgEntityHistoryCalculator.h.
References llvm::MapVector< KeyT, ValueT, MapType, VectorType >::empty().
Referenced by llvm::DebugHandlerBase::beginFunction().
|
inline |
Definition at line 94 of file DbgEntityHistoryCalculator.h.
References dump(), llvm::MapVector< KeyT, ValueT, MapType, VectorType >::end(), and LLVM_DUMP_METHOD.
|
inline |
Definition at line 86 of file DbgEntityHistoryCalculator.h.
Referenced by llvm::calculateDbgEntityHistory(), clobberRegEntries(), and handleNewDebugValue().
| EntryIndex DbgValueHistoryMap::startClobber | ( | InlinedEntity | Var, |
| const MachineInstr & | MI | ||
| ) |
Definition at line 73 of file DbgEntityHistoryCalculator.cpp.
References llvm::SmallVectorTemplateCommon< T, typename >::back(), llvm::SmallVectorImpl< T >::emplace_back(), MI, and llvm::SmallVectorBase::size().
Referenced by llvm::calculateDbgEntityHistory(), and clobberRegEntries().
| bool DbgValueHistoryMap::startDbgValue | ( | InlinedEntity | Var, |
| const MachineInstr & | MI, | ||
| EntryIndex & | NewIndex | ||
| ) |
Definition at line 53 of file DbgEntityHistoryCalculator.cpp.
References assert(), llvm::dbgs(), llvm::MachineInstr::isDebugValue(), and LLVM_DEBUG.
Referenced by handleNewDebugValue().
|
static |
Special value to indicate that an entry is valid until the end of the function.
Definition at line 34 of file DbgEntityHistoryCalculator.h.
Referenced by llvm::DbgValueHistoryMap::Entry::isClosed().
1.8.13