Go to the documentation of this file.
22 :
Bitstream(Encoded), ContainerType(ContainerType) {}
31 R.push_back(RecordID);
55 auto Abbrev = std::make_shared<BitCodeAbbrev>();
67 auto Abbrev = std::make_shared<BitCodeAbbrev>();
79 R.push_back(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>();
242 R.push_back(ContainerVersion);
283 R.push_back(StrTab.
add(Loc->SourceFilePath).first);
284 R.push_back(Loc->SourceLine);
285 R.push_back(Loc->SourceColumn);
292 R.push_back(*Hotness);
298 unsigned Key = StrTab.
add(
Arg.Key).first;
299 unsigned Val = StrTab.
add(
Arg.Val).first;
300 bool HasDebugLoc =
Arg.Loc !=
None;
306 R.push_back(StrTab.
add(
Arg.Loc->SourceFilePath).first);
307 R.push_back(
Arg.Loc->SourceLine);
308 R.push_back(
Arg.Loc->SourceColumn);
332 "For SerializerMode::Standalone, a pre-filled string table needs to "
362 "The Block info block and the meta block were not emitted yet.");
374 return std::make_unique<BitstreamMetaSerializer>(
378 &*
StrTab, ExternalFilename);
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...
This is an optimization pass for GlobalISel generic memory operations.
A raw_ostream that writes to an std::string.
void Emit(uint32_t Val, unsigned NumBits)
amdgpu Simplify well known AMD library false FunctionCallee Value * Arg
void EnterSubblock(unsigned BlockID, unsigned CodeLen)
(vector float) vec_cmpeq(*A, *B) C
@ BLOCKINFO_CODE_SETRECORDNAME
raw_ostream & write(unsigned char C)
This class implements an extremely fast bulk output stream that can only output to a stream.
unsigned EmitBlockInfoAbbrev(unsigned BlockID, std::shared_ptr< BitCodeAbbrev > Abbv)
EmitBlockInfoAbbrev - Emit a DEFINE_ABBREV record for the specified BlockID.
void EnterBlockInfoBlock()
EnterBlockInfoBlock - Start emitting the BLOCKINFO_BLOCK.
compiles ldr LCPI1_0 ldr ldr mov lsr tst moveq r1 ldr LCPI1_1 and r0 bx lr It would be better to do something like to fold the shift into the conditional move
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
@ BLOCKINFO_CODE_BLOCKNAME
StringRef - Represent a constant reference to a string, i.e.
void append_range(Container &C, Range &&R)
Wrapper function to append a range to a container.
void EmitRecordWithAbbrev(unsigned Abbrev, const Container &Vals)
EmitRecordWithAbbrev - Emit a record with the specified abbreviation.
BitCodeAbbrevOp - This describes one or more operands in an abbreviation.
std::string & str()
Returns the string's reference.