9#ifndef LLVM_OBJECTYAML_YAML_H
10#define LLVM_OBJECTYAML_YAML_H
71 bool DataIsHexString =
true;
82 return Data.size() / 2;
100 if (
LHS.Data.empty() &&
RHS.Data.empty())
103 return LHS.DataIsHexString ==
RHS.DataIsHexString &&
LHS.Data ==
RHS.Data;
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory),...
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.
Specialized YAMLIO scalar type for representing a binary blob.
ArrayRef< uint8_t >::size_type binary_size() const
The number of bytes that are represented by this BinaryRef.
BinaryRef(StringRef Data)
friend bool operator==(const BinaryRef &LHS, const BinaryRef &RHS)
BinaryRef(ArrayRef< uint8_t > Data)
void writeAsHex(raw_ostream &OS) const
Write the contents (regardless of whether it is binary or a hex string) as hex to the given raw_ostre...
void writeAsBinary(raw_ostream &OS, uint64_t N=UINT64_MAX) const
Write the contents (regardless of whether it is binary or a hex string) as binary to the given raw_os...
This is an optimization pass for GlobalISel generic memory operations.
bool operator==(const AddressRangeValuePair &LHS, const AddressRangeValuePair &RHS)
static StringRef input(StringRef, void *, BinaryRef &)
static void output(const BinaryRef &, void *, raw_ostream &)
static QuotingType mustQuote(StringRef S)