13 #ifndef LLVM_LIB_CODEGEN_ASMPRINTER_DWARFCOMPILEUNIT_H 14 #define LLVM_LIB_CODEGEN_ASMPRINTER_DWARFCOMPILEUNIT_H 48 bool HasRangeLists =
false;
52 DIE::value_iterator StmtListValue;
79 const MCSymbol *BaseAddress =
nullptr;
89 DIE *constructVariableDIEImpl(
const DbgVariable &DV,
bool Abstract);
91 bool isDwoUnit()
const override;
94 if (isDwoUnit() && !DD->shareAcrossDWOCUs())
95 return AbstractSPDies;
96 return DU->getAbstractSPDies();
100 if (isDwoUnit() && !DD->shareAcrossDWOCUs())
101 return AbstractEntities;
102 return DU->getAbstractEntities();
119 bool includeMinimalInlineScopes()
const;
124 void applyStmtList(
DIE &D);
134 BitSize(BitSize), Encoding(Encoding) {}
165 unsigned getOrCreateSourceID(
const DIFile *
File)
override;
169 assert(Scope &&
"Invalid Scope encoding!");
170 if (!isa<DILocalScope>(Scope))
174 auto *LocalScope = cast<DILocalScope>(
Scope)->getNonLexicalBlockFileScope();
175 ImportedEntities[LocalScope].push_back(IE);
198 void attachRangesOrLowHighPC(
DIE &D,
210 DIE *constructVariableDIE(
DbgVariable &DV,
bool Abstract =
false);
213 DIE *&ObjectPointer);
221 bool *HasNonScopeChildren =
nullptr);
223 void createBaseTypeDIEs();
231 void constructAbstractSubprogramScopeDIE(
LexicalScope *Scope);
254 bool IsTail,
const MCSymbol *PCAddr,
255 const MCExpr *PCOffset,
unsigned CallReg);
260 void constructCallSiteParmEntryDIEs(
DIE &CallSiteDIE,
266 void finishSubprogramDefinition(
const DISubprogram *SP);
267 void finishEntityDefinition(
const DbgEntity *Entity);
280 DD->getDwarfVersion() >= 5 && DD->useSplitDwarf() ?
sizeof(uint64_t)
286 getHeaderSize() + getUnitDie().getSize();
289 void emitHeader(
bool UseOffsets)
override;
292 void addAddrTableBase();
300 return MacroLabelBegin;
311 void addGlobalType(
const DIType *Ty,
const DIE &Die,
312 const DIScope *Context)
override;
315 void addGlobalTypeUnitType(
const DIType *Ty,
const DIScope *Context);
338 void applyVariableAttributes(
const DbgVariable &Var,
DIE &VariableDie);
346 void applySubprogramAttributesToDefinition(
const DISubprogram *SP,
349 void applyLabelAttributes(
const DbgLabel &Label,
DIE &LabelDie);
361 bool hasDwarfPubSections()
const;
368 #endif // LLVM_LIB_CODEGEN_ASMPRINTER_DWARFCOMPILEUNIT_H Scope
Defines the scope in which this symbol should be visible: Default – Visible in the public interface ...
const StringMap< const DIE * > & getGlobalTypes() const
std::vector< BaseTypeRef > ExprRefedBaseTypes
virtual unsigned getHeaderSize() const
Compute the size of a header for this unit, not including the initial length field.
const MCSymbol * getBaseAddress() const
DIELoc - Represents an expression location.
This class represents lattice values for constants.
MCSymbol - Instances of this class represent a symbol name in the MC file, and MCSymbols are created ...
A Module instance is used to store all the information related to an LLVM module. ...
amdgpu Simplify well known AMD library false FunctionCallee Value const Twine & Name
bool hasRangeLists() const
Collects and handles dwarf debug information.
This class is defined as the common parent of DbgVariable and DbgLabel such that it could levarage po...
DwarfCompileUnit & getCU() override
LexicalScope - This class is used to track scope information.
Tagged DWARF-like metadata node.
DIScope * getScope() const
This class consists of common code factored out of the SmallVector class to reduce code duplication b...
Base class for the full range of assembler expressions which are needed for parsing.
DbgValueHistoryMap::InlinedEntity InlinedEntity
Find abstract variable associated with Var.
void setDWOId(uint64_t DwoId)
Expected< const typename ELFT::Shdr * > getSection(typename ELFT::ShdrRange Sections, uint32_t Index)
unsigned getUniqueID() const
uint64_t getDWOId() const
This class is used to track local variable information.
void setBaseAddress(const MCSymbol *Base)
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory)...
const DIExpression * Expr
This class is used to track label information.
This dwarf writer support class manages information associated with a source file.
Instrumentation for Order File
A structured debug information entry.
This class is intended to be used as a driving class for all asm writers.
unsigned getHeaderSize() const override
Compute the size of a header for this unit, not including the initial length field.
A pair of GlobalVariable and DIExpression.
std::pair< const DINode *, const DILocation * > InlinedEntity
An imported module (C++ using directive or similar).
void setSkeleton(DwarfCompileUnit &Skel)
Set the skeleton unit associated with this unit.
Base class for scope-like contexts.
SmallVector< RangeSpan, 2 > takeRanges()
MCSymbol * getMacroLabelBegin() const
const StringMap< const DIE * > & getGlobalNames() const
BaseTypeRef(unsigned BitSize, dwarf::TypeKind Encoding)
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small...
static GCRegistry::Add< StatepointGC > D("statepoint-example", "an example strategy for statepoint")
StringMap - This is an unconventional map that is specialized for handling keys that are "strings"...
This file contains constants used for implementing Dwarf debug support.
const SmallVectorImpl< RangeSpan > & getRanges() const
getRanges - Get the list of ranges for this unit.
void addImportedEntity(const DIImportedEntity *IE)
DwarfCompileUnit * getSkeleton() const
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
StringRef - Represent a constant reference to a string, i.e.
const GlobalVariable * Var
MCSymbol * getLabelBegin() const