LLVM 20.0.0git
|
This class helps to assign indexes for DIE children. More...
#include "DWARFLinker/Parallel/SyntheticTypeNameBuilder.h"
Public Member Functions | |
OrderedChildrenIndexAssigner (CompileUnit &CU, const DWARFDebugInfoEntry *DieEntry) | |
std::optional< std::pair< size_t, size_t > > | getChildIndex (CompileUnit &CU, const DWARFDebugInfoEntry *ChildDieEntry) |
Returns index of the specified child and width of hexadecimal representation. | |
Protected Types | |
using | OrderedChildrenIndexesArrayTy = std::array< size_t, 8 > |
Protected Member Functions | |
std::optional< size_t > | tagToArrayIndex (CompileUnit &CU, const DWARFDebugInfoEntry *DieEntry) |
Protected Attributes | |
bool | NeedCountChildren = false |
OrderedChildrenIndexesArrayTy | OrderedChildIdxs = {0} |
OrderedChildrenIndexesArrayTy | ChildIndexesWidth = {0} |
This class helps to assign indexes for DIE children.
Indexes are used to create type name for children which should be presented in the original order(function parameters, array dimensions, enumeration members, class/structure members).
Definition at line 132 of file SyntheticTypeNameBuilder.h.
|
protected |
Definition at line 143 of file SyntheticTypeNameBuilder.h.
OrderedChildrenIndexAssigner::OrderedChildrenIndexAssigner | ( | CompileUnit & | CU, |
const DWARFDebugInfoEntry * | DieEntry | ||
) |
Definition at line 660 of file SyntheticTypeNameBuilder.cpp.
References assert(), ChildIndexesWidth, llvm::DWARFDebugInfoEntry::getTag(), NeedCountChildren, and tagToArrayIndex().
std::optional< std::pair< size_t, size_t > > OrderedChildrenIndexAssigner::getChildIndex | ( | CompileUnit & | CU, |
const DWARFDebugInfoEntry * | ChildDieEntry | ||
) |
Returns index of the specified child and width of hexadecimal representation.
Definition at line 750 of file SyntheticTypeNameBuilder.cpp.
References assert(), ChildIndexesWidth, OrderedChildIdxs, and tagToArrayIndex().
|
protected |
Definition at line 715 of file SyntheticTypeNameBuilder.cpp.
References llvm::DWARFDebugInfoEntry::getParentIdx(), llvm::DWARFDebugInfoEntry::getTag(), and NeedCountChildren.
Referenced by getChildIndex(), and OrderedChildrenIndexAssigner().
|
protected |
Definition at line 150 of file SyntheticTypeNameBuilder.h.
Referenced by getChildIndex(), and OrderedChildrenIndexAssigner().
|
protected |
Definition at line 148 of file SyntheticTypeNameBuilder.h.
Referenced by OrderedChildrenIndexAssigner(), and tagToArrayIndex().
|
protected |
Definition at line 149 of file SyntheticTypeNameBuilder.h.
Referenced by getChildIndex().