Go to the documentation of this file.
52 std::shared_ptr<DebugSubsection> Subsection)
53 : Subsection(
std::
move(Subsection)) {}
57 : Contents(Contents) {}
60 uint32_t DataSize = Subsection ? Subsection->calculateSerializedSize()
70 "Debug Subsection not properly aligned");
76 uint32_t DataSize = Subsection ? Subsection->calculateSerializedSize()
83 if (
auto EC = Subsection->commit(Writer))
uint64_t alignTo(uint64_t Size, Align A)
Returns a multiple of A needed to store Size bytes.
This is an optimization pass for GlobalISel generic memory operations.
Provides write only access to a subclass of WritableBinaryStream.
static ErrorSuccess success()
Create a success value.
static Error initialize(BinaryStreamRef Stream, DebugSubsectionRecord &Info)
Error writeStreamRef(BinaryStreamRef Ref)
Efficiently reads all data from Ref, and writes it to this stream.
DebugSubsectionRecordBuilder(std::shared_ptr< DebugSubsection > Subsection)
uint64_t getLength() const
Analysis containing CSE Info
Error readStreamRef(BinaryStreamRef &Ref)
Read the entire remainder of the underlying stream into Ref.
Provides read only access to a subclass of BinaryStream.
uint32_t alignOf(CodeViewContainer Container)
uint32_t getRecordLength() const
uint64_t getOffset() const
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
OutputIt move(R &&Range, OutputIt Out)
Provide wrappers to std::move which take ranges instead of having to pass begin/end explicitly.
uint32_t calculateSerializedLength() const
Error readObject(const T *&Dest)
Get a pointer to an object of type T from the underlying stream, as if by memcpy, and store the resul...
Error writeObject(const T &Obj)
Writes the object Obj to the underlying stream, as if by using memcpy.
Error padToAlignment(uint32_t Align)
Lightweight error class with error context and mandatory checking.
DebugSubsectionKind kind() const
Error commit(BinaryStreamWriter &Writer, CodeViewContainer Container) const
BinaryStreamRef getRecordData() const
BinaryStreamRef is to BinaryStream what ArrayRef is to an Array.