21 : Encoded(), R(),
Bitstream(Encoded), ContainerType(ContainerType) {}
24 for (
const char C : Str)
55 auto Abbrev = std::make_shared<BitCodeAbbrev>();
67 auto Abbrev = std::make_shared<BitCodeAbbrev>();
75 uint64_t RemarkVersion) {
86 auto Abbrev = std::make_shared<BitCodeAbbrev>();
110 auto Abbrev = std::make_shared<BitCodeAbbrev>();
132 auto Abbrev = std::make_shared<BitCodeAbbrev>();
146 auto Abbrev = std::make_shared<BitCodeAbbrev>();
159 auto Abbrev = std::make_shared<BitCodeAbbrev>();
171 auto Abbrev = std::make_shared<BitCodeAbbrev>();
187 auto Abbrev = std::make_shared<BitCodeAbbrev>();
298 unsigned Key = StrTab.
add(Arg.
Key).first;
299 unsigned Val = StrTab.
add(Arg.
Val).first;
300 bool HasDebugLoc = Arg.
Loc !=
None;
332 "For SerializerMode::Standalone, a pre-filled string table needs to " 345 StrTab = std::move(StrTabIn);
357 MetaSerializer.
emit();
362 "The Block info block and the meta block were not emitted yet.");
374 return std::make_unique<BitstreamMetaSerializer>(
378 &*
StrTab, ExternalFilename);
This class represents lattice values for constants.
void push_back(const T &Elt)
void Emit(uint32_t Val, unsigned NumBits)
void EnterBlockInfoBlock()
EnterBlockInfoBlock - Start emitting the BLOCKINFO_BLOCK.
void EmitRecordWithAbbrev(unsigned Abbrev, const Container &Vals)
EmitRecordWithAbbrev - Emit a record with the specified abbreviation.
void EmitRecord(unsigned Code, const Container &Vals, unsigned Abbrev=0)
EmitRecord - Emit the specified record to the stream, using an abbrev if we have one to compress the ...
void EnterSubblock(unsigned BlockID, unsigned CodeLen)
BitCodeAbbrevOp - This describes one or more operands in an abbreviation.
amdgpu Simplify well known AMD library false FunctionCallee Value * Arg
std::string & str()
Flushes the stream contents to the target string and returns the string's reference.
raw_ostream & write(unsigned char C)
void EmitRecordWithBlob(unsigned Abbrev, const Container &Vals, StringRef Blob)
EmitRecordWithBlob - Emit the specified record to the stream, using an abbrev that includes a blob at...
pointer data()
Return a pointer to the vector's buffer, even if empty().
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
A raw_ostream that writes to an std::string.
This class implements an extremely fast bulk output stream that can only output to a stream...
StringRef - Represent a constant reference to a string, i.e.
unsigned EmitBlockInfoAbbrev(unsigned BlockID, std::shared_ptr< BitCodeAbbrev > Abbv)
EmitBlockInfoAbbrev - Emit a DEFINE_ABBREV record for the specified BlockID.