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

LLVM 22.0.0git
llvm::raw_ostream Class Referenceabstract

This class implements an extremely fast bulk output stream that can only output to a stream. More...

#include "llvm/Support/raw_ostream.h"

Inheritance diagram for llvm::raw_ostream:
[legend]

Public Types

enum class  OStreamKind { OK_OStream , OK_FDStream , OK_SVecStream }
enum class  Colors {
  BLACK = 0 , RED , GREEN , YELLOW ,
  BLUE , MAGENTA , CYAN , WHITE ,
  BRIGHT_BLACK , BRIGHT_RED , BRIGHT_GREEN , BRIGHT_YELLOW ,
  BRIGHT_BLUE , BRIGHT_MAGENTA , BRIGHT_CYAN , BRIGHT_WHITE ,
  SAVEDCOLOR , RESET
}
using uuid_t = uint8_t[16]
 Output a formatted UUID with dash separators.

Public Member Functions

 raw_ostream (bool unbuffered=false, OStreamKind K=OStreamKind::OK_OStream)
 raw_ostream (const raw_ostream &)=delete
void operator= (const raw_ostream &)=delete
virtual ~raw_ostream ()
uint64_t tell () const
 tell - Return the current offset with the file.
OStreamKind get_kind () const
virtual void reserveExtraSpace (uint64_t ExtraSize)
 If possible, pre-allocate ExtraSize bytes for stream data.
void SetBuffered ()
 Set the stream to be buffered, with an automatically determined buffer size.
void SetBufferSize (size_t Size)
 Set the stream to be buffered, using the specified buffer size.
size_t GetBufferSize () const
void SetUnbuffered ()
 Set the stream to be unbuffered.
size_t GetNumBytesInBuffer () const
void flush ()
raw_ostreamoperator<< (char C)
raw_ostreamoperator<< (unsigned char C)
raw_ostreamoperator<< (signed char C)
raw_ostreamoperator<< (StringRef Str)
raw_ostreamoperator<< (const char *Str)
raw_ostreamoperator<< (const std::string &Str)
raw_ostreamoperator<< (const std::string_view &Str)
raw_ostreamoperator<< (const SmallVectorImpl< char > &Str)
raw_ostreamoperator<< (unsigned long N)
raw_ostreamoperator<< (long N)
raw_ostreamoperator<< (unsigned long long N)
raw_ostreamoperator<< (long long N)
raw_ostreamoperator<< (const void *P)
raw_ostreamoperator<< (unsigned int N)
raw_ostreamoperator<< (int N)
raw_ostreamoperator<< (double N)
raw_ostreamwrite_hex (unsigned long long N)
 Output N in hexadecimal, without any prefix or padding.
raw_ostreamoperator<< (Colors C)
raw_ostreamwrite_uuid (const uuid_t UUID)
raw_ostreamwrite_escaped (StringRef Str, bool UseHexEscapes=false)
 Output Str, turning '\', '\t', '
', '"', and anything that doesn't satisfy llvm::isPrint into an escape sequence.
raw_ostreamwrite (unsigned char C)
raw_ostreamwrite (const char *Ptr, size_t Size)
raw_ostreamoperator<< (const format_object_base &Fmt)
raw_ostreamoperator<< (const FormattedString &)
raw_ostreamoperator<< (const FormattedNumber &)
raw_ostreamoperator<< (const formatv_object_base &)
raw_ostreamoperator<< (const FormattedBytes &)
raw_ostreamindent (unsigned NumSpaces)
 indent - Insert 'NumSpaces' spaces.
raw_ostreamwrite_zeros (unsigned NumZeros)
 write_zeros - Insert 'NumZeros' nulls.
virtual raw_ostreamchangeColor (enum Colors Color, bool Bold=false, bool BG=false)
 Changes the foreground color of text that will be output from this point forward.
virtual raw_ostreamresetColor ()
 Resets the colors to terminal defaults.
virtual raw_ostreamreverseColor ()
 Reverses the foreground and background colors.
virtual bool is_displayed () const
 This function determines if this stream is connected to a "tty" or "console" window.
virtual bool has_colors () const
 This function determines if this stream is displayed and supports colors.
virtual void enable_colors (bool enable)
bool colors_enabled () const

Static Public Attributes

static constexpr Colors BLACK = Colors::BLACK
static constexpr Colors RED = Colors::RED
static constexpr Colors GREEN = Colors::GREEN
static constexpr Colors YELLOW = Colors::YELLOW
static constexpr Colors BLUE = Colors::BLUE
static constexpr Colors MAGENTA = Colors::MAGENTA
static constexpr Colors CYAN = Colors::CYAN
static constexpr Colors WHITE = Colors::WHITE
static constexpr Colors BRIGHT_BLACK = Colors::BRIGHT_BLACK
static constexpr Colors BRIGHT_RED = Colors::BRIGHT_RED
static constexpr Colors BRIGHT_GREEN = Colors::BRIGHT_GREEN
static constexpr Colors BRIGHT_YELLOW = Colors::BRIGHT_YELLOW
static constexpr Colors BRIGHT_BLUE = Colors::BRIGHT_BLUE
static constexpr Colors BRIGHT_MAGENTA = Colors::BRIGHT_MAGENTA
static constexpr Colors BRIGHT_CYAN = Colors::BRIGHT_CYAN
static constexpr Colors BRIGHT_WHITE = Colors::BRIGHT_WHITE
static constexpr Colors SAVEDCOLOR = Colors::SAVEDCOLOR
static constexpr Colors RESET = Colors::RESET

Protected Member Functions

void SetBuffer (char *BufferStart, size_t Size)
 Use the provided buffer as the raw_ostream buffer.
virtual size_t preferred_buffer_size () const
 Return an efficient buffer size for the underlying output mechanism.
const chargetBufferStart () const
 Return the beginning of the current stream buffer, or 0 if the stream is unbuffered.

Detailed Description

This class implements an extremely fast bulk output stream that can only output to a stream.

It does not support seeking, reopening, rewinding, line buffered disciplines etc. It is a simple buffer that outputs a chunk at a time.

Definition at line 53 of file raw_ostream.h.

Member Typedef Documentation

◆ uuid_t

Output a formatted UUID with dash separators.

Definition at line 297 of file raw_ostream.h.

Member Enumeration Documentation

◆ Colors

enum class llvm::raw_ostream::Colors
strong
Enumerator
BLACK 
RED 
GREEN 
YELLOW 
BLUE 
MAGENTA 
CYAN 
WHITE 
BRIGHT_BLACK 
BRIGHT_RED 
BRIGHT_GREEN 
BRIGHT_YELLOW 
BRIGHT_BLUE 
BRIGHT_MAGENTA 
BRIGHT_CYAN 
BRIGHT_WHITE 
SAVEDCOLOR 
RESET 

Definition at line 94 of file raw_ostream.h.

◆ OStreamKind

enum class llvm::raw_ostream::OStreamKind
strong
Enumerator
OK_OStream 
OK_FDStream 
OK_SVecStream 

Definition at line 56 of file raw_ostream.h.

Constructor & Destructor Documentation

◆ raw_ostream() [1/2]

◆ raw_ostream() [2/2]

llvm::raw_ostream::raw_ostream ( const raw_ostream & )
delete

References raw_ostream().

◆ ~raw_ostream()

raw_ostream::~raw_ostream ( )
virtual

Definition at line 75 of file raw_ostream.cpp.

References assert().

Member Function Documentation

◆ changeColor()

raw_ostream & raw_ostream::changeColor ( enum Colors Color,
bool Bold = false,
bool BG = false )
virtual

Changes the foreground color of text that will be output from this point forward.

Parameters
ColorANSI color to use, the special SAVEDCOLOR can be used to change only the bold attribute, and keep colors untouched
Boldbold/brighter text, default false
BGif true change the background, default: change foreground
Returns
itself so it can be used within << invocations

Reimplemented in llvm::formatted_raw_ostream.

Definition at line 520 of file raw_ostream.cpp.

References llvm::sys::Process::OutputBold(), llvm::sys::Process::OutputColor(), raw_ostream(), SAVEDCOLOR, and write().

Referenced by llvm::formatted_raw_ostream::changeColor(), operator<<(), and PrintNodeId().

◆ colors_enabled()

bool llvm::raw_ostream::colors_enabled ( ) const
inline

◆ enable_colors()

◆ flush()

void llvm::raw_ostream::flush ( )
inline

Definition at line 199 of file raw_ostream.h.

Referenced by llvm::object::ArchiveMemberHeader::ArchiveMemberHeader(), CleanupStdHandles(), llvm::raw_fd_ostream::close(), computeMemberData(), computeStringTable(), llvm::LTOCodeGenerator::DiagnosticHandler(), llvm::ImportedFunctionsInliningStatistics::dump(), llvm::pdb::PDBSymbol::dumpChildStats(), llvm::pdb::PDBSymbol::dumpProperties(), emitComments(), emitDebugSectionImpl(), llvm::TargetLoweringObjectFileCOFF::emitLinkerDirectives(), llvm::emitLinkerFlagsForGlobalCOFF(), llvm::format(), llvm::Attribute::getAsString(), getBlockName(), llvm::BFIDOTGraphTraitsBase< BlockFrequencyInfo, BranchProbabilityInfo >::getEdgeAttributes(), llvm::LazyCallGraph::RefSCC::getName(), llvm::LazyCallGraph::SCC::getName(), llvm::object::ArchiveMemberHeader::getName(), llvm::BFIDOTGraphTraitsBase< BlockFrequencyInfo, BranchProbabilityInfo >::getNodeAttributes(), handleDiagnostic(), llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::IsSameAsFreshTree(), LLVMGetDiagInfoDescription(), LLVMPrintDbgRecordToString(), LLVMPrintModuleToString(), LLVMPrintTypeToString(), LLVMPrintValueToString(), LLVMTargetMachineEmit(), LLVMTargetMachineEmitToFile(), llvm::DiagnosticInfoUnsupported::print(), llvm::PrintStatistics(), llvm::PrintStatisticsJSON(), reportError(), reportOpenError(), rescheduleLexographically(), llvm::raw_fd_ostream::seek(), SetBufferSize(), SetUnbuffered(), llvm::raw_sha1_ostream::sha1(), llvm::formatv_object_base::str(), llvm::InterleavedRange< Range >::str(), llvm::unittest::TempFile::TempFile(), llvm::PeelingModuloScheduleExpander::validateAgainstModuloScheduleExpander(), llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::VerifyDFSNumbers(), llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::VerifyLevels(), llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::verifyParentProperty(), llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::verifyReachability(), llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::verifyRoots(), llvm::DomTreeBuilder::SemiNCAInfo< DomTreeT >::verifySiblingProperty(), llvm::writeArchiveToStream(), llvm::writeToOutput(), writeToResolutionFile(), writeUniversalArchsToStream(), llvm::circular_raw_ostream::~circular_raw_ostream(), llvm::formatted_raw_ostream::~formatted_raw_ostream(), llvm::raw_fd_ostream::~raw_fd_ostream(), llvm::raw_null_ostream::~raw_null_ostream(), and llvm::raw_os_ostream::~raw_os_ostream().

◆ get_kind()

OStreamKind llvm::raw_ostream::get_kind ( ) const
inline

Definition at line 150 of file raw_ostream.h.

Referenced by llvm::raw_fd_stream::classof().

◆ GetBufferSize()

size_t llvm::raw_ostream::GetBufferSize ( ) const
inline

Definition at line 173 of file raw_ostream.h.

References preferred_buffer_size().

◆ getBufferStart()

const char * llvm::raw_ostream::getBufferStart ( ) const
inlineprotected

Return the beginning of the current stream buffer, or 0 if the stream is unbuffered.

Definition at line 397 of file raw_ostream.h.

Referenced by llvm::formatted_raw_ostream::getColumn(), llvm::formatted_raw_ostream::getLine(), llvm::orc::DumpObjects::operator()(), and llvm::formatted_raw_ostream::PadToColumn().

◆ GetNumBytesInBuffer()

size_t llvm::raw_ostream::GetNumBytesInBuffer ( ) const
inline

◆ has_colors()

virtual bool llvm::raw_ostream::has_colors ( ) const
inlinevirtual

This function determines if this stream is displayed and supports colors.

The result is unaffected by calls to enable_color().

Reimplemented in llvm::raw_fd_ostream, llvm::raw_ostream_proxy_adaptor< RawOstreamT >, and llvm::raw_ostream_proxy_adaptor< raw_pwrite_stream >.

Definition at line 352 of file raw_ostream.h.

References is_displayed().

Referenced by DefaultAutoDetectFunction(), and llvm::raw_ostream_proxy_adaptor< RawPwriteStreamT >::has_colors().

◆ indent()

raw_ostream & raw_ostream::indent ( unsigned NumSpaces)

indent - Insert 'NumSpaces' spaces.

Definition at line 495 of file raw_ostream.cpp.

References raw_ostream(), and write_padding().

Referenced by llvm::collectParametricTerms(), llvm::computeAccessFunctions(), llvm::IndexedReference::computeRefCost(), llvm::DWARFDie::dump(), llvm::gsym::GsymReader::dump(), llvm::gsym::GsymReader::dump(), llvm::gsym::GsymReader::dump(), llvm::gsym::GsymReader::dump(), llvm::LexicalScope::dump(), llvm::pdb::IPDBSourceFile::dump(), llvm::sandboxir::SeedBundle::dump(), dumpAttribute(), llvm::sandboxir::Value::dumpCommonFooter(), llvm::DWARFLocationTable::dumpLocationList(), DumpNodes(), DumpNodesr(), llvm::FPPassManager::dumpPassStructure(), llvm::LPPassManager::dumpPassStructure(), llvm::RGPassManager::dumpPassStructure(), dumpRanges(), llvm::DWARFDebugLoc::dumpRawEntry(), llvm::DWARFDebugLoclists::dumpRawEntry(), llvm::pdb::dumpSymbolField(), llvm::pdb::dumpSymbolIdField(), llvm::DWARFDebugLine::Row::dumpTableHeader(), llvm::MCPseudoProbe::emit(), llvm::MCPseudoProbeInlineTree::emit(), emitBasicBlockLoopComments(), llvm::findArrayDimensions(), llvm::support::detail::PadAdapter< T >::format(), llvm::IndexedReference::hasSpacialReuse(), llvm::dwarf_linker::parallel::DWARFLinkerImpl::LinkContext::isClangModuleRef(), llvm::gsym::operator<<(), llvm::operator<<(), llvm::operator<<(), operator<<(), operator<<(), operator<<(), llvm::formatted_raw_ostream::PadToColumn(), llvm::DWARFDebugLine::LineTable::parse(), llvm::HashRecognize::print(), llvm::LoopAccessInfo::print(), llvm::LoopBase< BlockT, LoopT >::print(), llvm::MachineBasicBlock::print(), llvm::MemoryDepChecker::Dependence::print(), llvm::PredicatedScalarEvolution::print(), llvm::RegionBase< Tr >::print(), llvm::RuntimePointerChecking::print(), llvm::sampleprof::FunctionSamples::print(), llvm::sandboxir::Action::print(), llvm::sandboxir::MemDGNode::print(), llvm::SCEVComparePredicate::print(), llvm::SCEVWrapPredicate::print(), llvm::slpvectorizer::BoUpSLP::VLOperands::print(), llvm::WebAssemblyException::print(), RecurrenceInfo::print(), llvm::dwarf::printCFIProgram(), llvm::RuntimePointerChecking::printChecks(), PrintChildLoopComment(), llvm::cl::Option::printEnumValHelpStr(), PrintExtension(), llvm::cl::generic_parser_base::printGenericOptionDiff(), PrintHelpOptionList(), llvm::cl::Option::printHelpStr(), printMBB(), llvm::cl::basic_parser_impl::printOptionName(), PrintParentLoopComment(), llvm::TargetRegistry::printRegisteredTargetsForVersion(), printrWithDepthHelper(), llvm::RISCVISAInfo::printSupportedExtensions(), printUnwindRow(), and printWithSpacePadding().

◆ is_displayed()

virtual bool llvm::raw_ostream::is_displayed ( ) const
inlinevirtual

This function determines if this stream is connected to a "tty" or "console" window.

That is, the output would be displayed to the user rather than being put on a pipe or stored in a file.

Reimplemented in llvm::circular_raw_ostream, llvm::formatted_raw_ostream, llvm::raw_fd_ostream, llvm::raw_ostream_proxy_adaptor< RawOstreamT >, and llvm::raw_ostream_proxy_adaptor< raw_pwrite_stream >.

Definition at line 348 of file raw_ostream.h.

Referenced by llvm::CheckBitcodeOutputToConsole(), has_colors(), and llvm::raw_ostream_proxy_adaptor< RawPwriteStreamT >::is_displayed().

◆ operator<<() [1/22]

raw_ostream & llvm::raw_ostream::operator<< ( char C)
inline

Definition at line 204 of file raw_ostream.h.

References llvm::CallingConv::C, raw_ostream(), and write().

◆ operator<<() [2/22]

raw_ostream & raw_ostream::operator<< ( Colors C)

Definition at line 150 of file raw_ostream.cpp.

References llvm::CallingConv::C, changeColor(), raw_ostream(), RESET, and resetColor().

◆ operator<<() [3/22]

raw_ostream & llvm::raw_ostream::operator<< ( const char * Str)
inline

Definition at line 254 of file raw_ostream.h.

References operator<<(), and raw_ostream().

◆ operator<<() [4/22]

raw_ostream & raw_ostream::operator<< ( const format_object_base & Fmt)

Definition at line 308 of file raw_ostream.cpp.

References assert(), llvm::format_object_base::print(), raw_ostream(), and write().

◆ operator<<() [5/22]

◆ operator<<() [6/22]

◆ operator<<() [7/22]

◆ operator<<() [8/22]

raw_ostream & raw_ostream::operator<< ( const formatv_object_base & Obj)

Definition at line 348 of file raw_ostream.cpp.

References llvm::formatv_object_base::format(), and raw_ostream().

◆ operator<<() [9/22]

raw_ostream & llvm::raw_ostream::operator<< ( const SmallVectorImpl< char > & Str)
inline

Definition at line 270 of file raw_ostream.h.

References raw_ostream(), and write().

◆ operator<<() [10/22]

raw_ostream & llvm::raw_ostream::operator<< ( const std::string & Str)
inline

Definition at line 261 of file raw_ostream.h.

References raw_ostream(), and write().

◆ operator<<() [11/22]

raw_ostream & llvm::raw_ostream::operator<< ( const std::string_view & Str)
inline

Definition at line 266 of file raw_ostream.h.

References raw_ostream(), and write().

◆ operator<<() [12/22]

raw_ostream & raw_ostream::operator<< ( const void * P)

Definition at line 208 of file raw_ostream.cpp.

References P, llvm::PrefixLower, raw_ostream(), and llvm::write_hex().

◆ operator<<() [13/22]

raw_ostream & raw_ostream::operator<< ( double N)

Definition at line 213 of file raw_ostream.cpp.

References llvm::Exponent, N, raw_ostream(), and llvm::write_double().

◆ operator<<() [14/22]

raw_ostream & llvm::raw_ostream::operator<< ( int N)
inline

Definition at line 284 of file raw_ostream.h.

References N, and raw_ostream().

◆ operator<<() [15/22]

raw_ostream & raw_ostream::operator<< ( long long N)

Definition at line 140 of file raw_ostream.cpp.

References llvm::Integer, N, raw_ostream(), and llvm::write_integer().

◆ operator<<() [16/22]

raw_ostream & raw_ostream::operator<< ( long N)

Definition at line 130 of file raw_ostream.cpp.

References llvm::Integer, N, raw_ostream(), and llvm::write_integer().

◆ operator<<() [17/22]

raw_ostream & llvm::raw_ostream::operator<< ( signed char C)
inline

Definition at line 218 of file raw_ostream.h.

References llvm::CallingConv::C, raw_ostream(), and write().

◆ operator<<() [18/22]

raw_ostream & llvm::raw_ostream::operator<< ( StringRef Str)
inline

Definition at line 225 of file raw_ostream.h.

References raw_ostream(), Size, and write().

◆ operator<<() [19/22]

raw_ostream & llvm::raw_ostream::operator<< ( unsigned char C)
inline

Definition at line 211 of file raw_ostream.h.

References llvm::CallingConv::C, raw_ostream(), and write().

◆ operator<<() [20/22]

raw_ostream & llvm::raw_ostream::operator<< ( unsigned int N)
inline

Definition at line 280 of file raw_ostream.h.

References N, and raw_ostream().

◆ operator<<() [21/22]

raw_ostream & raw_ostream::operator<< ( unsigned long long N)

Definition at line 135 of file raw_ostream.cpp.

References llvm::Integer, N, raw_ostream(), and llvm::write_integer().

◆ operator<<() [22/22]

raw_ostream & raw_ostream::operator<< ( unsigned long N)

Definition at line 125 of file raw_ostream.cpp.

References llvm::Integer, N, raw_ostream(), and llvm::write_integer().

◆ operator=()

void llvm::raw_ostream::operator= ( const raw_ostream & )
delete

References raw_ostream().

◆ preferred_buffer_size()

size_t raw_ostream::preferred_buffer_size ( ) const
protectedvirtual

Return an efficient buffer size for the underlying output mechanism.

Definition at line 85 of file raw_ostream.cpp.

Referenced by GetBufferSize(), and SetBuffered().

◆ reserveExtraSpace()

virtual void llvm::raw_ostream::reserveExtraSpace ( uint64_t ExtraSize)
inlinevirtual

If possible, pre-allocate ExtraSize bytes for stream data.

i.e. it extends internal buffers to keep additional ExtraSize bytes. So that the stream could keep at least tell() + ExtraSize bytes without re-allocations. reserveExtraSpace() does not change the size/data of the stream.

Reimplemented in llvm::raw_ostream_proxy_adaptor< RawOstreamT >, llvm::raw_ostream_proxy_adaptor< raw_pwrite_stream >, llvm::raw_string_ostream, and llvm::raw_svector_ostream.

Definition at line 161 of file raw_ostream.h.

Referenced by llvm::raw_ostream_proxy_adaptor< RawPwriteStreamT >::reserveExtraSpace().

◆ resetColor()

raw_ostream & raw_ostream::resetColor ( )
virtual

Resets the colors to terminal defaults.

Call this when you are done outputting colored text, or before program exit.

Reimplemented in llvm::formatted_raw_ostream.

Definition at line 533 of file raw_ostream.cpp.

References raw_ostream(), llvm::sys::Process::ResetColor(), and write().

Referenced by operator<<(), PrintNodeId(), and llvm::formatted_raw_ostream::resetColor().

◆ reverseColor()

raw_ostream & raw_ostream::reverseColor ( )
virtual

Reverses the foreground and background colors.

Reimplemented in llvm::formatted_raw_ostream.

Definition at line 542 of file raw_ostream.cpp.

References llvm::sys::Process::OutputReverse(), raw_ostream(), and write().

Referenced by llvm::formatted_raw_ostream::reverseColor().

◆ SetBuffer()

void llvm::raw_ostream::SetBuffer ( char * BufferStart,
size_t Size )
inlineprotected

Use the provided buffer as the raw_ostream buffer.

This is intended for use only by subclasses which can arrange for the output to go directly into the desired output buffer, instead of being copied on each flush.

Definition at line 388 of file raw_ostream.h.

References Size.

◆ SetBuffered()

void raw_ostream::SetBuffered ( )

Set the stream to be buffered, with an automatically determined buffer size.

Definition at line 97 of file raw_ostream.cpp.

References preferred_buffer_size(), SetBufferSize(), SetUnbuffered(), and Size.

Referenced by write(), and write().

◆ SetBufferSize()

void llvm::raw_ostream::SetBufferSize ( size_t Size)
inline

Set the stream to be buffered, using the specified buffer size.

Definition at line 168 of file raw_ostream.h.

References flush(), and Size.

Referenced by SetBuffered().

◆ SetUnbuffered()

void llvm::raw_ostream::SetUnbuffered ( )
inline

Set the stream to be unbuffered.

When unbuffered, the stream will flush after every write. This routine will also flush the buffer immediately when the stream is being set to unbuffered.

Definition at line 186 of file raw_ostream.h.

References flush().

Referenced by llvm::mustache::AddIndentationStringStream::AddIndentationStringStream(), llvm::mustache::EscapeStringStream::EscapeStringStream(), llvm::vfs::HashingStream< HasherT >::HashingStream(), llvm::raw_string_ostream::raw_string_ostream(), llvm::raw_svector_ostream::raw_svector_ostream(), llvm::raw_ostream_proxy_adaptor< RawPwriteStreamT >::resetProxiedOS(), and SetBuffered().

◆ tell()

◆ write() [1/2]

raw_ostream & raw_ostream::write ( const char * Ptr,
size_t Size )

Definition at line 245 of file raw_ostream.cpp.

References assert(), LLVM_UNLIKELY, Ptr, raw_ostream(), SetBuffered(), Size, and write().

◆ write() [2/2]

raw_ostream & raw_ostream::write ( unsigned char C)

Definition at line 225 of file raw_ostream.cpp.

References llvm::CallingConv::C, LLVM_UNLIKELY, raw_ostream(), SetBuffered(), and write().

Referenced by changeColor(), llvm::object::CompressedOffloadBundle::compress(), llvm::InstrProfRecordWriterTrait::EmitData(), llvm::DWARFYAML::emitDebugAbbrev(), llvm::DWARFYAML::emitDebugInfo(), llvm::DWARFYAML::emitDebugLine(), llvm::DWARFYAML::emitDebugNames(), llvm::DWARFYAML::emitDebugStr(), emitExternalFile(), emitFileEntry(), EmitInlineAsmStr(), llvm::InstrProfRecordWriterTrait::EmitKey(), emitMagic(), emitPubSection(), emitVersion(), llvm::remarks::BitstreamRemarkSerializerHelper::flushToStream(), llvm::DWARFYAML::Data::getAbbrevTableContentByIndex(), llvm::vfs::makeMirroringOutputBackend(), llvm::orc::DumpObjects::operator()(), operator<<(), operator<<(), operator<<(), llvm::PGOCtxProfileWriter::PGOCtxProfileWriter(), printBigArchiveMemberHeader(), printBSDMemberHeader(), resetColor(), reverseColor(), llvm::remarks::StringTable::serialize(), llvm::coverage::TestingFormatWriter::write(), llvm::mcdxbc::PSVRuntimeInfo::write(), llvm::mcdxbc::RootSignatureDesc::write(), llvm::mcdxbc::Signature::write(), write(), write(), llvm::support::endian::write(), llvm::vfs::YAMLVFSWriter::write(), llvm::support::endian::write_array(), llvm::write_hex(), write_padding(), write_unsigned_impl(), writeArrayData(), llvm::yaml::BinaryRef::writeAsBinary(), llvm::yaml::BinaryRef::writeAsHex(), llvm::WriteBitcodeToFile(), writeCOFF(), writeDIE(), writeDWARFLists(), llvm::dxil::WriteDXILToFile(), writeECSymbols(), writeExtendedOpcode(), writeFragment(), llvm::writeIndexToFile(), writeInteger(), writeListEntry(), writeLoadConfig(), llvm::ARMAsmBackend::writeNopData(), llvm::LoongArchAsmBackend::writeNopData(), llvm::RISCVAsmBackend::writeNopData(), writeSymbolMap(), writeSymbolTable(), llvm::writeThinLinkBitcodeToFile(), writeUint32(), writeUint64(), writeUint8(), writeUniversalArchsToStream(), writeWithCommas(), llvm::yaml::yaml2archive(), llvm::yaml::yaml2offload(), and ZeroFillBytes().

◆ write_escaped()

◆ write_hex()

raw_ostream & raw_ostream::write_hex ( unsigned long long N)

Output N in hexadecimal, without any prefix or padding.

Definition at line 145 of file raw_ostream.cpp.

References llvm::Lower, N, raw_ostream(), and llvm::write_hex().

Referenced by dumpDataAux(), printExpr(), printHex32(), llvm::HexagonShuffler::shuffle(), and llvm::InstrProfWriter::writeRecordInText().

◆ write_uuid()

raw_ostream & raw_ostream::write_uuid ( const uuid_t UUID)

Definition at line 158 of file raw_ostream.cpp.

References llvm::format(), and raw_ostream().

Referenced by dumpUUID(), and llvm::yaml::ScalarTraits< uuid_t >::output().

◆ write_zeros()

Member Data Documentation

◆ BLACK

raw_ostream::Colors raw_ostream::BLACK = Colors::BLACK
staticconstexpr

Definition at line 115 of file raw_ostream.h.

Referenced by PrintNodeId(), and llvm::WithColor::WithColor().

◆ BLUE

raw_ostream::Colors raw_ostream::BLUE = Colors::BLUE
staticconstexpr

Definition at line 119 of file raw_ostream.h.

Referenced by PrintNodeId(), and llvm::WithColor::WithColor().

◆ BRIGHT_BLACK

Colors llvm::raw_ostream::BRIGHT_BLACK = Colors::BRIGHT_BLACK
staticconstexpr

Definition at line 123 of file raw_ostream.h.

◆ BRIGHT_BLUE

Colors llvm::raw_ostream::BRIGHT_BLUE = Colors::BRIGHT_BLUE
staticconstexpr

Definition at line 127 of file raw_ostream.h.

◆ BRIGHT_CYAN

Colors llvm::raw_ostream::BRIGHT_CYAN = Colors::BRIGHT_CYAN
staticconstexpr

Definition at line 129 of file raw_ostream.h.

◆ BRIGHT_GREEN

Colors llvm::raw_ostream::BRIGHT_GREEN = Colors::BRIGHT_GREEN
staticconstexpr

Definition at line 125 of file raw_ostream.h.

◆ BRIGHT_MAGENTA

Colors llvm::raw_ostream::BRIGHT_MAGENTA = Colors::BRIGHT_MAGENTA
staticconstexpr

Definition at line 128 of file raw_ostream.h.

◆ BRIGHT_RED

Colors llvm::raw_ostream::BRIGHT_RED = Colors::BRIGHT_RED
staticconstexpr

Definition at line 124 of file raw_ostream.h.

◆ BRIGHT_WHITE

Colors llvm::raw_ostream::BRIGHT_WHITE = Colors::BRIGHT_WHITE
staticconstexpr

Definition at line 130 of file raw_ostream.h.

◆ BRIGHT_YELLOW

Colors llvm::raw_ostream::BRIGHT_YELLOW = Colors::BRIGHT_YELLOW
staticconstexpr

Definition at line 126 of file raw_ostream.h.

◆ CYAN

raw_ostream::Colors raw_ostream::CYAN = Colors::CYAN
staticconstexpr

◆ GREEN

raw_ostream::Colors raw_ostream::GREEN = Colors::GREEN
staticconstexpr

◆ MAGENTA

raw_ostream::Colors raw_ostream::MAGENTA = Colors::MAGENTA
staticconstexpr

Definition at line 120 of file raw_ostream.h.

Referenced by PrintNodeId(), and llvm::WithColor::WithColor().

◆ RED

raw_ostream::Colors raw_ostream::RED = Colors::RED
staticconstexpr

◆ RESET

raw_ostream::Colors raw_ostream::RESET = Colors::RESET
staticconstexpr

Definition at line 132 of file raw_ostream.h.

◆ SAVEDCOLOR

raw_ostream::Colors raw_ostream::SAVEDCOLOR = Colors::SAVEDCOLOR
staticconstexpr

◆ WHITE

raw_ostream::Colors raw_ostream::WHITE = Colors::WHITE
staticconstexpr

Definition at line 122 of file raw_ostream.h.

◆ YELLOW

raw_ostream::Colors raw_ostream::YELLOW = Colors::YELLOW
staticconstexpr

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