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);
89 std::vector<std::vector<SerializableCtxRepresentation>>
Callsites;
Lightweight error class with error context and mandatory checking.
Write one or more ContextNodes to the provided raw_fd_stream.
static constexpr unsigned VBREncodingBits
static constexpr uint32_t CurrentVersion
static constexpr StringRef ContainerMagic
void write(const ctx_profile::ContextNode &)
static constexpr unsigned CodeLen
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.
@ FIRST_APPLICATION_BLOCKID
This is an optimization pass for GlobalISel generic memory operations.
Error createCtxProfFromYAML(StringRef Profile, raw_ostream &Out)
Representation of the context node suitable for yaml / json serialization / deserialization.
std::vector< std::vector< SerializableCtxRepresentation > > Callsites
std::vector< uint64_t > Counters