31 io.mapRequired(
"Version", DebugH.
Version);
33 io.mapOptional(
"HashValues", DebugH.
Hashes);
36 void ScalarTraits<GlobalHash>::output(
const GlobalHash &GH,
void *Ctx,
38 ScalarTraits<BinaryRef>::output(GH.
Hash, Ctx, OS);
43 return ScalarTraits<BinaryRef>::input(Scalar, Ctx, GH.
Hash);
62 DHS.
Hashes.emplace_back(S);
79 for (
const auto &
H : DebugH.
Hashes) {
82 H.Hash.writeAsBinary(OS);
83 assert((Hash.size() == 8) &&
"Invalid hash size!");
void cantFail(Error Err, const char *Msg=nullptr)
Report a fatal error if Err is a failure value.
This class represents lattice values for constants.
Error readInteger(T &Dest)
Read an integer of the specified endianness into Dest and update the stream's offset.
std::vector< GlobalHash > Hashes
A raw_ostream that writes to an SmallVector or SmallString.
Error writeFixedString(StringRef Str)
Write the string Str to the underlying stream without a null terminator.
ArrayRef< uint8_t > toDebugH(const DebugHSection &DebugH, BumpPtrAllocator &Alloc)
Allocate memory in an ever growing pool, as if by bump-pointer.
size_t size() const
size - Get the array size.
LLVM_ATTRIBUTE_RETURNS_NONNULL LLVM_ATTRIBUTE_RETURNS_NOALIAS void * Allocate(size_t Size, size_t Alignment)
Allocate space at the specified alignment.
Provides write only access to a subclass of WritableBinaryStream.
Error writeInteger(T Value)
Write the integer Value to the underlying stream in the specified endianness.
uint32_t bytesRemaining() const
Error readBytes(ArrayRef< uint8_t > &Buffer, uint32_t Size)
Read Size bytes from the underlying stream at the current offset and and set Buffer to the resulting ...
DebugHSection fromDebugH(ArrayRef< uint8_t > DebugH)
uint32_t bytesRemaining() const
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
This class implements an extremely fast bulk output stream that can only output to a stream...
Provides read only access to a subclass of BinaryStream.
StringRef - Represent a constant reference to a string, i.e.