10 #ifndef LLVM_DEBUGINFO_DWARFABBREVIATIONDECLARATION_H
11 #define LLVM_DEBUGINFO_DWARFABBREVIATIONDECLARATION_H
53 return Form == dwarf::DW_FORM_implicit_const;
80 return AttributeSpecs[idx].Form;
84 return AttributeSpecs.
size();
89 return AttributeSpecs[idx].Attr;
128 struct FixedSizeInfo {
130 uint16_t NumBytes = 0;
132 uint8_t NumAddrs = 0;
134 uint8_t NumRefAddrs = 0;
136 uint8_t NumDwarfOffsets = 0;
138 FixedSizeInfo() =
default;
146 size_t getByteSize(
const DWARFUnit &U)
const;
151 uint8_t CodeByteSize;
156 Optional<FixedSizeInfo> FixedAttributeSize;
161 #endif // LLVM_DEBUGINFO_DWARFABBREVIATIONDECLARATION_H
Optional< int64_t > ByteSizeOrValue
The following field is used for ByteSize for non-implicit_const attributes and as value for implicit_...
bool extract(DataExtractor Data, uint32_t *OffsetPtr)
bool isImplicitConst() const
This provides a very simple, boring adaptor for a begin and end iterator into a range type...
size_t getNumAttributes() const
Optional< DWARFFormValue > getAttributeValue(const uint32_t DIEOffset, const dwarf::Attribute Attr, const DWARFUnit &U) const
Extract a DWARF form value from a DIE specified by DIE offset.
Optional< size_t > getFixedAttributesByteSize(const DWARFUnit &U) const
void dump(raw_ostream &OS) const
LLVM_ATTRIBUTE_ALWAYS_INLINE iterator begin()
DWARFAbbreviationDeclaration()
dwarf::Attribute getAttrByIndex(uint32_t idx) const
A range adaptor for a pair of iterators.
AttributeSpec(dwarf::Attribute A, dwarf::Form F, Optional< int64_t > V)
Optional< int64_t > getByteSize(const DWARFUnit &U) const
Get the fixed byte size of this Form if possible.
LLVM_ATTRIBUTE_ALWAYS_INLINE iterator end()
Optional< uint32_t > findAttributeIndex(dwarf::Attribute attr) const
Get the index of the specified attribute.
attr_iterator_range attributes() const
LLVM_ATTRIBUTE_ALWAYS_INLINE size_type size() const
dwarf::Form getFormByIndex(uint32_t idx) const
SmallVector< AttributeSpec, 8 > AttributeSpecVector
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
dwarf::Tag getTag() const
This class implements an extremely fast bulk output stream that can only output to a stream...
iterator_range< AttributeSpecVector::const_iterator > attr_iterator_range
uint8_t getCodeByteSize() const