10 #ifndef LLVM_DEBUGINFO_DWARFDIE_H
11 #define LLVM_DEBUGINFO_DWARFDIE_H
75 return AbbrevDecl->getTag();
76 return dwarf::DW_TAG_null;
200 uint64_t &SectionIndex)
const;
257 class attribute_iterator;
266 iterator
begin()
const;
267 iterator
end()
const;
273 const DWARFAttribute> {
304 return !(LHS == RHS);
308 std::forward_iterator_tag,
351 #endif // LLVM_DEBUGINFO_DWARFDIE_H
const DWARFDie & operator*() const
DWARFDie getAttributeValueAsReferencedDie(dwarf::Attribute Attr) const
Extract the specified attribute from this DIE as the referenced DIE.
DWARFAddressRangesVector getAddressRanges() const
Get the address ranges for this DIE.
Optional< uint64_t > getHighPC(uint64_t LowPC) const
Get the DW_AT_high_pc attribute value as an address.
This provides a very simple, boring adaptor for a begin and end iterator into a range type...
attribute_iterator & operator++()
void collectChildrenAddressRanges(DWARFAddressRangesVector &Ranges) const
Get all address ranges for any DW_TAG_subprogram DIEs in this DIE or any of its children.
const DWARFDebugInfoEntry * getDebugInfoEntry() const
DINameKind
A DINameKind is passed to name search methods to specify a preference regarding the type of name reso...
bool addressRangeContainsAddress(const uint64_t Address) const
const char * getSubroutineName(DINameKind Kind) const
If a DIE represents a subprogram (or inlined subroutine), returns its mangled name (or short name...
uint32_t getOffset() const
Get the absolute offset into the debug info or types section.
void getCallerFrame(uint32_t &CallFile, uint32_t &CallLine, uint32_t &CallColumn, uint32_t &CallDiscriminator) const
Retrieves values of DW_AT_call_file, DW_AT_call_line and DW_AT_call_column from DIE (or zeroes if the...
bool getLowAndHighPC(uint64_t &LowPC, uint64_t &HighPC, uint64_t &SectionIndex) const
Retrieves DW_AT_low_pc and DW_AT_high_pc from CU.
Encapsulates a DWARF attribute value and all of the data required to describe the attribute value...
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory)...
CRTP base class which implements the entire standard iterator facade in terms of a minimal subset of ...
DWARFDie getParent() const
Get the parent of this DIE object.
Container for dump options that control which debug information will be dumped.
attribute_iterator()=delete
DWARFDie getSibling() const
Get the sibling of this DIE object.
DWARFUnit * getDwarfUnit() const
constexpr char Attrs[]
Key for Kernel::Metadata::mAttrs.
Utility class that carries the DWARF compile/type unit and the debug info entry in an object...
iterator_range< iterator > children() const
bool operator==(const attribute_iterator &X) const
static GCMetadataPrinterRegistry::Add< ErlangGCPrinter > X("erlang","erlang-compatible garbage collector")
static const unsigned End
Optional< DWARFFormValue > find(dwarf::Attribute Attr) const
Extract the specified attribute from this DIE.
bool operator==(const iterator &X) const
const DWARFAttribute & operator*() const
DWARFDie getFirstChild() const
Get the first child of this DIE object.
const DWARFAbbreviationDeclaration * getAbbreviationDeclarationPtr() const
Get the abbreviation declaration for this DIE.
iterator_range< T > make_range(T x, T y)
Convenience function for iterating over sub-ranges.
Optional< DWARFFormValue > findRecursively(ArrayRef< dwarf::Attribute > Attrs) const
Extract the first value of any attribute in Attrs from this DIE and recurse into any DW_AT_specificat...
uint64_t getDeclLine() const
Returns the declaration line (start line) for a DIE, assuming it specifies a subprogram.
const char * getName(DINameKind Kind) const
Return the DIE name resolving DW_AT_sepcification or DW_AT_abstract_origin references if necessary...
uint32_t getOffset() const
A range adaptor for a pair of iterators.
Optional< uint64_t > getRangesBaseAttribute() const
Extract the range base attribute from this DIE as absolute section offset.
bool isSubroutineDIE() const
Returns true if DIE represents a subprogram or an inlined subroutine.
bool operator!=(uint64_t V1, const APInt &V2)
bool isSubprogramDIE() const
Returns true if DIE represents a subprogram (not inlined).
const DWARFAbbreviationDeclaration * getAbbreviationDeclarationPtr() const
iterator_range< attribute_iterator > attributes() const
Get an iterator range to all attributes in the current DIE only.
void dump(raw_ostream &OS, unsigned recurseDepth, unsigned indent=0, DIDumpOptions DumpOpts=DIDumpOptions()) const
Dump the DIE and all of its attributes to the supplied stream.
std::vector< uint8_t > Unit
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
dwarf::Tag getTag() const
std::vector< DWARFAddressRange > DWARFAddressRangesVector
DWARFAddressRangesVector - represents a set of absolute address ranges.
DWARFDebugInfoEntry - A DIE with only the minimum required data.
This class implements an extremely fast bulk output stream that can only output to a stream...
bool operator==(uint64_t V1, const APInt &V2)
DWARFDie(DWARFUnit *Unit, const DWARFDebugInfoEntry *D)
bool isNULL() const
Returns true for a valid DIE that terminates a sibling chain.