Thanks to visit codestin.com
Credit goes to llvm.org

LLVM 22.0.0git
llvm::ProfOStream Class Reference

#include "llvm/ProfileData/InstrProf.h"

Public Member Functions

LLVM_ABI ProfOStream (raw_fd_ostream &FD)
LLVM_ABI ProfOStream (raw_string_ostream &STR)
LLVM_ABI uint64_t tell () const
LLVM_ABI void write (uint64_t V)
LLVM_ABI void write32 (uint32_t V)
LLVM_ABI void writeByte (uint8_t V)
LLVM_ABI void patch (ArrayRef< PatchItem > P)

Public Attributes

bool IsFDOStream
raw_ostreamOS
support::endian::Writer LE

Detailed Description

Definition at line 70 of file InstrProf.h.

Constructor & Destructor Documentation

◆ ProfOStream() [1/2]

llvm::ProfOStream::ProfOStream ( raw_fd_ostream & FD)

Definition at line 263 of file InstrProf.cpp.

References IsFDOStream, LE, llvm::little, and OS.

◆ ProfOStream() [2/2]

llvm::ProfOStream::ProfOStream ( raw_string_ostream & STR)

Definition at line 266 of file InstrProf.cpp.

References IsFDOStream, LE, llvm::little, and OS.

Member Function Documentation

◆ patch()

◆ tell()

uint64_t llvm::ProfOStream::tell ( ) const
nodiscard

◆ write()

◆ write32()

void llvm::ProfOStream::write32 ( uint32_t V)

◆ writeByte()

void llvm::ProfOStream::writeByte ( uint8_t V)

Definition at line 272 of file InstrProf.cpp.

References LE.

Referenced by llvm::memprof::DataAccessProfData::serialize().

Member Data Documentation

◆ IsFDOStream

bool llvm::ProfOStream::IsFDOStream

Definition at line 87 of file InstrProf.h.

Referenced by patch(), ProfOStream(), and ProfOStream().

◆ LE

support::endian::Writer llvm::ProfOStream::LE

Definition at line 89 of file InstrProf.h.

Referenced by ProfOStream(), ProfOStream(), write(), write32(), and writeByte().

◆ OS


The documentation for this class was generated from the following files: