9#ifndef LLVM_DEBUGINFO_DWARF_DWARFABBREVIATIONDECLARATION_H
10#define LLVM_DEBUGINFO_DWARF_DWARFABBREVIATIONDECLARATION_H
38 this->ByteSize.HasByteSize =
ByteSize.has_value();
39 if (this->ByteSize.HasByteSize)
44 if (
Form == dwarf::DW_FORM_implicit_const)
67 struct ByteSizeStorage {
78 return Form == dwarf::DW_FORM_implicit_const;
110 return AttributeSpecs[idx].Form;
114 return AttributeSpecs.
size();
119 return AttributeSpecs[idx].Attr;
124 return AttributeSpecs[idx].isImplicitConst();
129 return AttributeSpecs[idx].getImplicitConstValue();
172 std::optional<DWARFFormValue>
189 struct FixedSizeInfo {
199 FixedSizeInfo() =
default;
207 size_t getByteSize(
const DWARFUnit &U)
const;
217 std::optional<FixedSizeInfo> FixedAttributeSize;
static GCRegistry::Add< ErlangGC > A("erlang", "erlang-compatible garbage collector")
This file contains constants used for implementing Dwarf debug support.
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
This file defines the SmallVector class.
SmallVector< AttributeSpec, 8 > AttributeSpecVector
size_t getNumAttributes() const
bool getAttrIsImplicitConstByIndex(uint32_t idx) const
iterator_range< AttributeSpecVector::const_iterator > attr_iterator_range
dwarf::Attribute getAttrByIndex(uint32_t idx) const
attr_iterator_range attributes() const
int64_t getAttrImplicitConstValueByIndex(uint32_t idx) const
uint8_t getCodeByteSize() const
uint64_t getAttributeOffsetFromIndex(uint32_t AttrIndex, uint64_t DIEOffset, const DWARFUnit &U) const
Compute an offset from a DIE specified by DIE offset and attribute index.
dwarf::Tag getTag() const
std::optional< uint32_t > findAttributeIndex(dwarf::Attribute attr) const
Get the index of the specified attribute.
std::optional< DWARFFormValue > getAttributeValue(const uint64_t DIEOffset, const dwarf::Attribute Attr, const DWARFUnit &U) const
Extract a DWARF form value from a DIE specified by DIE offset.
std::optional< size_t > getFixedAttributesByteSize(const DWARFUnit &U) const
dwarf::Form getFormByIndex(uint32_t idx) const
void dump(raw_ostream &OS) const
std::optional< DWARFFormValue > getAttributeValueFromOffset(uint32_t AttrIndex, uint64_t Offset, const DWARFUnit &U) const
Extract a DWARF form value from a DIE speccified by attribute index and its offset.
DWARFAbbreviationDeclaration()
Tagged union holding either a T or a Error.
LLVM Value Representation.
A range adaptor for a pair of iterators.
This class implements an extremely fast bulk output stream that can only output to a stream.
This provides a very simple, boring adaptor for a begin and end iterator into a range type.
This is an optimization pass for GlobalISel generic memory operations.
DWARFFormValue getFormValue() const
AttributeSpec(dwarf::Attribute A, dwarf::Form F, int64_t Value)
AttributeSpec(dwarf::Attribute A, dwarf::Form F, std::optional< uint8_t > ByteSize)
std::optional< int64_t > getByteSize(const DWARFUnit &U) const
Get the fixed byte size of this Form if possible.
bool isImplicitConst() const
int64_t getImplicitConstValue() const