llvm::ProfOStream

Profile writer stream that supports deferred byte-level back-patching.

Synopsis

Declared in <llvm/ProfileData/InstrProf.h>

class ProfOStream;

Member Functions

NameDescription
ProfOStream [constructor]Constructors
patch Apply deferred patches after all data has been written and flushed.
tell Return the current write offset in bytes.
write Write a 64-bit value in the stream's endianness.
write32 Write a 32-bit value in the stream's endianness.
writeByte Write a single byte.

Data Members

NameDescription
IsFDOStream True when OS is a raw_fd_ostream; otherwise it is a string stream.
LE Endian-aware writer used for multi-byte stores.
OS Underlying output stream being written.

Non-Member Functions

NameDescription
writeMemProfWrite MemProf profile data to OS in the requested indexed format version.