13#ifndef LLVM_PROFILEDATA_PGOCTXPROFWRITER_H_
14#define LLVM_PROFILEDATA_PGOCTXPROFWRITER_H_
67 void writeImpl(std::optional<uint32_t> CallerIndex,
72 std::optional<unsigned> VersionOverride = std::nullopt)
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)
Write one or more ContextNodes to the provided raw_fd_stream.
PGOCtxProfileWriter(raw_fd_stream &Out, std::optional< unsigned > VersionOverride=std::nullopt)
static constexpr unsigned VBREncodingBits
static constexpr uint32_t CurrentVersion
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.
A raw_ostream of a file for reading/writing/seeking.
@ FIRST_APPLICATION_BLOCKID
This is an optimization pass for GlobalISel generic memory operations.