31void PGOCtxProfileWriter::writeImpl(std::optional<uint32_t> CallerIndex,
41 for (
const auto *Subcontext =
Node.subContexts()[
I]; Subcontext;
42 Subcontext = Subcontext->next())
43 writeImpl(
I, *Subcontext);
48 writeImpl(std::nullopt, RootNode);
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 EmitCode(unsigned Val)
EmitCode - Emit the specified code.
void EmitVBR64(uint64_t Val, unsigned NumBits)
void EmitVBR(uint32_t Val, unsigned NumBits)
void EnterSubblock(unsigned BlockID, unsigned CodeLen)
static constexpr unsigned VBREncodingBits
void write(const ctx_profile::ContextNode &)
static constexpr unsigned CodeLen
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small.
This is an optimization pass for GlobalISel generic memory operations.