22 std::memset(&HeaderData, 0,
sizeof(
Header));
23 ArangeDescriptors.clear();
29 ArangeDescriptors.clear();
63 const uint32_t header_size = *offset_ptr - Offset;
66 while (first_tuple_offset < header_size)
67 first_tuple_offset += tuple_size;
69 *offset_ptr = Offset + first_tuple_offset;
73 static_assert(
sizeof(arangeDescriptor.
Address) ==
74 sizeof(arangeDescriptor.
Length),
75 "Different datatypes for addresses and sizes!");
85 ArangeDescriptors.push_back(arangeDescriptor);
90 return !ArangeDescriptors.empty();
96 OS <<
format(
"Address Range Header: length = 0x%8.8x, version = 0x%4.4x, ",
98 <<
format(
"cu_offset = 0x%8.8x, addr_size = 0x%2.2x, seg_size = 0x%2.2x\n",
102 for (
const auto &
Desc : ArangeDescriptors) {
103 OS <<
format(
"[0x%*.*" PRIx64
" -", hex_width, hex_width,
Desc.Address)
104 <<
format(
" 0x%*.*" PRIx64
")\n",
105 hex_width, hex_width,
Desc.getEndAddress());
MachineInstrBuilder MachineInstrBuilder &DefMI const MCInstrDesc & Desc
format_object< Ts...> format(const char *Fmt, const Ts &...Vals)
These are helper functions used to produce formatted output.
void dump(raw_ostream &OS) const
bool extract(DataExtractor data, uint32_t *offset_ptr)
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
This class implements an extremely fast bulk output stream that can only output to a stream...