9 #ifndef LLVM_DEBUGINFO_DWARFABBREVIATIONDECLARATION_H 10 #define LLVM_DEBUGINFO_DWARFABBREVIATIONDECLARATION_H 37 this->ByteSize.HasByteSize = ByteSize.
hasValue();
38 if (this->ByteSize.HasByteSize)
59 struct ByteSizeStorage {
70 return Form == dwarf::DW_FORM_implicit_const;
101 assert(idx < AttributeSpecs.size());
102 return AttributeSpecs[idx].Form;
106 return AttributeSpecs.size();
110 assert(idx < AttributeSpecs.size());
111 return AttributeSpecs[idx].Attr;
150 struct FixedSizeInfo {
154 uint8_t NumAddrs = 0;
156 uint8_t NumRefAddrs = 0;
158 uint8_t NumDwarfOffsets = 0;
160 FixedSizeInfo() =
default;
173 uint8_t CodeByteSize;
183 #endif // LLVM_DEBUGINFO_DWARFABBREVIATIONDECLARATION_H uint8_t getCodeByteSize() const
This class represents lattice values for constants.
Optional< int64_t > getByteSize(const DWARFUnit &U) const
Get the fixed byte size of this Form if possible.
This provides a very simple, boring adaptor for a begin and end iterator into a range type...
int64_t getImplicitConstValue() const
Optional< size_t > getFixedAttributesByteSize(const DWARFUnit &U) const
Optional< uint32_t > findAttributeIndex(dwarf::Attribute attr) const
Get the index of the specified attribute.
bool isImplicitConst() const
AttributeSpec(dwarf::Attribute A, dwarf::Form F, int64_t Value)
dwarf::Form getFormByIndex(uint32_t idx) const
attr_iterator_range attributes() const
DWARFAbbreviationDeclaration()
dwarf::Tag getTag() const
void dump(raw_ostream &OS) const
AttributeSpec(dwarf::Attribute A, dwarf::Form F, Optional< uint8_t > ByteSize)
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.
A range adaptor for a pair of iterators.
This file contains constants used for implementing Dwarf debug support.
bool extract(DataExtractor Data, uint64_t *OffsetPtr)
dwarf::Attribute getAttrByIndex(uint32_t idx) const
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
LLVM Value Representation.
This class implements an extremely fast bulk output stream that can only output to a stream...
size_t getNumAttributes() const
iterator_range< AttributeSpecVector::const_iterator > attr_iterator_range