28 io.mapRequired(
"Version", DebugH.
Version);
30 io.mapOptional(
"HashValues", DebugH.
Hashes);
33void ScalarTraits<GlobalHash>::output(
const GlobalHash &GH,
void *Ctx,
35 ScalarTraits<BinaryRef>::output(GH.
Hash, Ctx,
OS);
40 return ScalarTraits<BinaryRef>::input(Scalar, Ctx, GH.
Hash);
59 DHS.
Hashes.emplace_back(S);
76 for (
const auto &
H : DebugH.
Hashes) {
79 H.Hash.writeAsBinary(
OS);
80 assert((Hash.
size() == 8) &&
"Invalid hash size!");
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory),...
size_t size() const
size - Get the array size.
Provides read only access to a subclass of BinaryStream.
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 ...
Error readInteger(T &Dest)
Read an integer of the specified endianness into Dest and update the stream's offset.
uint64_t bytesRemaining() const
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.
uint64_t bytesRemaining() const
Error writeFixedString(StringRef Str)
Write the string Str to the underlying stream without a null terminator.
Allocate memory in an ever growing pool, as if by bump-pointer.
LLVM_ATTRIBUTE_RETURNS_NONNULL void * Allocate(size_t Size, Align Alignment)
Allocate space at the specified alignment.
MutableArrayRef - Represent a mutable reference to an array (0 or more elements consecutively in memo...
SmallString - A SmallString is just a SmallVector with methods and accessors that make it work better...
StringRef - Represent a constant reference to a string, i.e.
This class implements an extremely fast bulk output stream that can only output to a stream.
A raw_ostream that writes to an SmallVector or SmallString.
ArrayRef< uint8_t > toDebugH(const DebugHSection &DebugH, BumpPtrAllocator &Alloc)
DebugHSection fromDebugH(ArrayRef< uint8_t > DebugH)
This is an optimization pass for GlobalISel generic memory operations.
void cantFail(Error Err, const char *Msg=nullptr)
Report a fatal error if Err is a failure value.
std::vector< GlobalHash > Hashes