LLVM 20.0.0git |
This class implements an extremely fast bulk output stream that canonly output to a stream.More...
#include "llvm/Support/raw_ostream.h"
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 (constraw_ostream &)=delete | |
void | operator= (constraw_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-allocateExtraSize bytes for stream data. | |
void | SetBuffered () |
Set the stream to be buffered, with an automatically determined buffer size. | |
void | SetBufferSize (size_tSize) |
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_ostream & | operator<< (charC) |
raw_ostream & | operator<< (unsignedcharC) |
raw_ostream & | operator<< (signedcharC) |
raw_ostream & | operator<< (StringRef Str) |
raw_ostream & | operator<< (constchar *Str) |
raw_ostream & | operator<< (const std::string &Str) |
raw_ostream & | operator<< (const std::string_view &Str) |
raw_ostream & | operator<< (constSmallVectorImpl<char > &Str) |
raw_ostream & | operator<< (unsigned longN) |
raw_ostream & | operator<< (longN) |
raw_ostream & | operator<< (unsigned long longN) |
raw_ostream & | operator<< (long longN) |
raw_ostream & | operator<< (const void *P) |
raw_ostream & | operator<< (unsigned intN) |
raw_ostream & | operator<< (intN) |
raw_ostream & | operator<< (doubleN) |
raw_ostream & | write_hex (unsigned long longN) |
OutputN in hexadecimal, without any prefix or padding. | |
raw_ostream & | operator<< (ColorsC) |
raw_ostream & | write_uuid (constuuid_tUUID) |
raw_ostream & | write_escaped (StringRef Str,bool UseHexEscapes=false) |
OutputStr , turning '\', '\t', '', '"', and anything that doesn't satisfy llvm::isPrint into an escape sequence. | |
raw_ostream & | write (unsignedcharC) |
raw_ostream & | write (constchar *Ptr, size_tSize) |
raw_ostream & | operator<< (constformat_object_base &Fmt) |
raw_ostream & | operator<< (constFormattedString &) |
raw_ostream & | operator<< (constFormattedNumber &) |
raw_ostream & | operator<< (constformatv_object_base &) |
raw_ostream & | operator<< (constFormattedBytes &) |
raw_ostream & | indent (unsigned NumSpaces) |
indent - Insert 'NumSpaces' spaces. | |
raw_ostream & | write_zeros (unsigned NumZeros) |
write_zeros - Insert 'NumZeros' nulls. | |
virtualraw_ostream & | changeColor (enumColors Color,bool Bold=false,bool BG=false) |
Changes the foreground color of text that will be output from this point forward. | |
virtualraw_ostream & | resetColor () |
Resets the colors to terminal defaults. | |
virtualraw_ostream & | reverseColor () |
Reverses the foreground and background colors. | |
virtualbool | is_displayed ()const |
This function determines if this stream is connected to a "tty" or "console" window. | |
virtualbool | 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 constexprColors | BLACK = Colors::BLACK |
static constexprColors | RED = Colors::RED |
static constexprColors | GREEN = Colors::GREEN |
static constexprColors | YELLOW = Colors::YELLOW |
static constexprColors | BLUE = Colors::BLUE |
static constexprColors | MAGENTA = Colors::MAGENTA |
static constexprColors | CYAN = Colors::CYAN |
static constexprColors | WHITE = Colors::WHITE |
static constexprColors | BRIGHT_BLACK = Colors::BRIGHT_BLACK |
static constexprColors | BRIGHT_RED = Colors::BRIGHT_RED |
static constexprColors | BRIGHT_GREEN = Colors::BRIGHT_GREEN |
static constexprColors | BRIGHT_YELLOW = Colors::BRIGHT_YELLOW |
static constexprColors | BRIGHT_BLUE = Colors::BRIGHT_BLUE |
static constexprColors | BRIGHT_MAGENTA = Colors::BRIGHT_MAGENTA |
static constexprColors | BRIGHT_CYAN = Colors::BRIGHT_CYAN |
static constexprColors | BRIGHT_WHITE = Colors::BRIGHT_WHITE |
static constexprColors | SAVEDCOLOR = Colors::SAVEDCOLOR |
static constexprColors | RESET = Colors::RESET |
Protected Member Functions | |
void | SetBuffer (char *BufferStart, size_tSize) |
Use the provided buffer as theraw_ostream buffer. | |
virtual size_t | preferred_buffer_size ()const |
Return an efficient buffer size for the underlying output mechanism. | |
constchar * | getBufferStart ()const |
Return the beginning of the current stream buffer, or 0 if the stream is unbuffered. | |
This class implements an extremely fast bulk output stream that canonly 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 line52 of fileraw_ostream.h.
usingllvm::raw_ostream::uuid_t =uint8_t[16] |
Output a formatted UUID with dash separators.
Definition at line296 of fileraw_ostream.h.
| 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 line93 of fileraw_ostream.h.
| strong |
Enumerator | |
---|---|
OK_OStream | |
OK_FDStream | |
OK_SVecStream |
Definition at line55 of fileraw_ostream.h.
| inlineexplicit |
Definition at line133 of fileraw_ostream.h.
| delete |
| virtual |
Definition at line75 of fileraw_ostream.cpp.
Referencesassert().
| virtual |
Changes the foreground color of text that will be output from this point forward.
Color | ANSI color to use, the special SAVEDCOLOR can be used to change only the bold attribute, and keep colors untouched |
Bold | bold/brighter text, default false |
BG | if true change the background, default: change foreground |
Reimplemented inllvm::formatted_raw_ostream.
Definition at line520 of fileraw_ostream.cpp.
Referencesllvm::sys::Process::OutputBold(),llvm::sys::Process::OutputColor(),SAVEDCOLOR, andwrite().
Referenced byllvm::formatted_raw_ostream::changeColor(),llvm::WithColor::changeColor(),operator<<(),llvm::WithColor::WithColor(), andllvm::MCInstPrinter::WithMarkup::WithMarkup().
| inline |
Definition at line357 of fileraw_ostream.h.
Referenced byllvm::formatted_raw_ostream::changeColor(),llvm::formatted_raw_ostream::resetColor(), andllvm::formatted_raw_ostream::reverseColor().
| inlinevirtual |
Definition at line355 of fileraw_ostream.h.
Referenced byLLVMDisasmInstruction(), andllvm::raw_fd_ostream::raw_fd_ostream().
| inline |
Definition at line198 of fileraw_ostream.h.
Referenced byllvm::TarWriter::append(),llvm::object::ArchiveMemberHeader::ArchiveMemberHeader(),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::json::OStream::flush(),llvm::ScopedPrinter::flush(),llvm::format(),llvm::Attribute::getAsString(),getBlockName(),llvm::object::ArchiveMemberHeader::getName(),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::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::gsym::FileWriter::~FileWriter(),llvm::formatted_raw_ostream::~formatted_raw_ostream(),llvm::raw_fd_ostream::~raw_fd_ostream(),llvm::raw_null_ostream::~raw_null_ostream(), andllvm::raw_os_ostream::~raw_os_ostream().
| inline |
Definition at line149 of fileraw_ostream.h.
Referenced byllvm::raw_fd_stream::classof(), andllvm::raw_svector_ostream::classof().
| inline |
Definition at line172 of fileraw_ostream.h.
Referencespreferred_buffer_size().
Return the beginning of the current stream buffer, or 0 if the stream is unbuffered.
Definition at line396 of fileraw_ostream.h.
Referenced byllvm::formatted_raw_ostream::getColumn(),llvm::formatted_raw_ostream::getLine(),llvm::orc::DumpObjects::operator()(), andllvm::formatted_raw_ostream::PadToColumn().
| inline |
Definition at line190 of fileraw_ostream.h.
Referenced byllvm::formatted_raw_ostream::getColumn(),llvm::formatted_raw_ostream::getLine(),llvm::formatted_raw_ostream::PadToColumn(), andtell().
| inlinevirtual |
This function determines if this stream is displayed and supports colors.
The result is unaffected by calls to enable_color().
Reimplemented inllvm::raw_fd_ostream.
Definition at line351 of fileraw_ostream.h.
Referencesis_displayed().
Referenced byDefaultAutoDetectFunction().
raw_ostream & raw_ostream::indent | ( | unsigned | NumSpaces | ) |
indent - Insert 'NumSpaces' spaces.
Definition at line495 of fileraw_ostream.cpp.
Referenced byllvm::IndexedReference::computeRefCost(),llvm::gsym::GsymReader::dump(),llvm::dwarf::CFIProgram::dump(),llvm::dwarf::UnwindRow::dump(),llvm::pdb::IPDBSourceFile::dump(),llvm::DWARFDie::dump(),llvm::LexicalScope::dump(),dumpAttribute(),llvm::sandboxir::Value::dumpCommonFooter(),llvm::DWARFLocationTable::dumpLocationList(),DumpNodes(),DumpNodesr(),llvm::LPPassManager::dumpPassStructure(),llvm::RGPassManager::dumpPassStructure(),llvm::FPPassManager::dumpPassStructure(),dumpRanges(),llvm::DWARFDebugLoc::dumpRawEntry(),llvm::DWARFDebugLoclists::dumpRawEntry(),llvm::pdb::dumpSymbolIdField(),llvm::DWARFDebugLine::Row::dumpTableHeader(),llvm::MCPseudoProbeInlineTree::emit(),llvm::MCPseudoProbe::emit(),llvm::StringMatcher::Emit(),emitBasicBlockLoopComments(),llvm::support::detail::PadAdapter< T >::format(),llvm::IndexedReference::hasSpacialReuse(),llvm::dwarf_linker::parallel::DWARFLinkerImpl::LinkContext::isClangModuleRef(),llvm::pdb::LinePrinter::NewLine(),llvm::operator<<(),llvm::gsym::operator<<(),llvm::DWARFDebugLine::LineTable::parse(),llvm::MIPrinter::print(),llvm::slpvectorizer::BoUpSLP::VLOperands::print(),llvm::RegionBase< Tr >::print(),llvm::LoopBase< BlockT, LoopT >::print(),llvm::MachineBasicBlock::print(),llvm::PredicatedScalarEvolution::print(),llvm::MemoryDepChecker::Dependence::print(),llvm::RuntimePointerChecking::print(),llvm::LoopAccessInfo::print(),llvm::WebAssemblyException::print(),llvm::SCEVComparePredicate::print(),llvm::SCEVWrapPredicate::print(),llvm::sampleprof::FunctionSamples::print(),llvm::RuntimePointerChecking::printChecks(),PrintChildLoopComment(),llvm::cl::Option::printEnumValHelpStr(),PrintExtension(),llvm::cl::generic_parser_base::printGenericOptionDiff(),PrintHelpOptionList(),llvm::cl::Option::printHelpStr(),llvm::cl::basic_parser_impl::printOptionName(),PrintParentLoopComment(),llvm::TargetRegistry::printRegisteredTargetsForVersion(),printrWithDepthHelper(),llvm::RISCVISAInfo::printSupportedExtensions(),printWithSpacePadding(),llvm::LoopAccessInfoPrinterPass::run(), andllvm::sampleprof::SampleProfileWriterText::writeSample().
| 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 inllvm::circular_raw_ostream,llvm::formatted_raw_ostream, andllvm::raw_fd_ostream.
Definition at line347 of fileraw_ostream.h.
Referenced byllvm::CheckBitcodeOutputToConsole(),has_colors(),llvm::circular_raw_ostream::is_displayed(), andllvm::formatted_raw_ostream::is_displayed().
| inline |
Definition at line203 of fileraw_ostream.h.
Referencesllvm::CallingConv::C, andwrite().
Referenced byoperator<<().
raw_ostream & raw_ostream::operator<< | ( | Colors | C | ) |
Definition at line150 of fileraw_ostream.cpp.
Referencesllvm::CallingConv::C,changeColor(),RESET, andresetColor().
| inline |
Definition at line253 of fileraw_ostream.h.
Referencesoperator<<().
raw_ostream & raw_ostream::operator<< | ( | constformat_object_base & | Fmt | ) |
Definition at line308 of fileraw_ostream.cpp.
Referencesassert(),llvm::format_object_base::print(), andwrite().
raw_ostream & raw_ostream::operator<< | ( | constFormattedBytes & | FB | ) |
Definition at line402 of fileraw_ostream.cpp.
Referencesllvm::alignTo(),assert(),llvm::ArrayRef< T >::empty(),I,llvm::Log2_64_Ceil(),llvm::Lower,llvm::Offset,Size,llvm::Upper, andllvm::write_hex().
raw_ostream & raw_ostream::operator<< | ( | constFormattedNumber & | FN | ) |
Definition at line379 of fileraw_ostream.cpp.
Referencesllvm::Integer,llvm::Lower,llvm::PrefixLower,llvm::PrefixUpper,llvm::SmallVectorBase< Size_T >::size(),llvm::Upper,llvm::write_hex(), andllvm::write_integer().
raw_ostream & raw_ostream::operator<< | ( | constFormattedString & | FS | ) |
Definition at line353 of fileraw_ostream.cpp.
Referencesllvm::FormattedString::JustifyCenter,llvm::FormattedString::JustifyLeft,llvm::FormattedString::JustifyNone, andllvm::FormattedString::JustifyRight.
raw_ostream & raw_ostream::operator<< | ( | constformatv_object_base & | Obj | ) |
Definition at line348 of fileraw_ostream.cpp.
Referencesllvm::formatv_object_base::format().
| inline |
Definition at line269 of fileraw_ostream.h.
Referenceswrite().
| inline |
Definition at line260 of fileraw_ostream.h.
Referenceswrite().
| inline |
Definition at line265 of fileraw_ostream.h.
Referenceswrite().
raw_ostream & raw_ostream::operator<< | ( | const void * | P | ) |
Definition at line208 of fileraw_ostream.cpp.
ReferencesP,llvm::PrefixLower, andllvm::write_hex().
raw_ostream & raw_ostream::operator<< | ( | double | N | ) |
Definition at line213 of fileraw_ostream.cpp.
Referencesllvm::Exponent,N, andllvm::write_double().
| inline |
Definition at line283 of fileraw_ostream.h.
ReferencesN.
raw_ostream & raw_ostream::operator<< | ( | long long | N | ) |
Definition at line140 of fileraw_ostream.cpp.
Referencesllvm::Integer,N, andllvm::write_integer().
raw_ostream & raw_ostream::operator<< | ( | long | N | ) |
Definition at line130 of fileraw_ostream.cpp.
Referencesllvm::Integer,N, andllvm::write_integer().
| inline |
Definition at line217 of fileraw_ostream.h.
Referencesllvm::CallingConv::C, andwrite().
| inline |
Definition at line224 of fileraw_ostream.h.
| inline |
Definition at line210 of fileraw_ostream.h.
Referencesllvm::CallingConv::C, andwrite().
| inline |
Definition at line279 of fileraw_ostream.h.
ReferencesN.
raw_ostream & raw_ostream::operator<< | ( | unsigned long long | N | ) |
Definition at line135 of fileraw_ostream.cpp.
Referencesllvm::Integer,N, andllvm::write_integer().
raw_ostream & raw_ostream::operator<< | ( | unsigned long | N | ) |
Definition at line125 of fileraw_ostream.cpp.
Referencesllvm::Integer,N, andllvm::write_integer().
| delete |
| protectedvirtual |
Return an efficient buffer size for the underlying output mechanism.
Definition at line85 of fileraw_ostream.cpp.
Referenced byGetBufferSize(), andSetBuffered().
| inlinevirtual |
If possible, pre-allocateExtraSize
bytes for stream data.
i.e. it extends internal buffers to keep additional ExtraSize bytes. So that the stream could keep at leasttell() + ExtraSize bytes without re-allocations.reserveExtraSpace() does not change the size/data of the stream.
Reimplemented inllvm::raw_string_ostream, andllvm::raw_svector_ostream.
Definition at line160 of fileraw_ostream.h.
Referenced byllvm::objcopy::wasm::Writer::write().
| virtual |
Resets the colors to terminal defaults.
Call this when you are done outputting colored text, or before program exit.
Reimplemented inllvm::formatted_raw_ostream.
Definition at line533 of fileraw_ostream.cpp.
Referencesllvm::sys::Process::ResetColor(), andwrite().
Referenced byoperator<<(),llvm::WithColor::resetColor(),llvm::formatted_raw_ostream::resetColor(), andllvm::pdb::WithColor::~WithColor().
| virtual |
Reverses the foreground and background colors.
Reimplemented inllvm::formatted_raw_ostream.
Definition at line542 of fileraw_ostream.cpp.
Referencesllvm::sys::Process::OutputReverse(), andwrite().
Referenced byllvm::formatted_raw_ostream::reverseColor().
| inlineprotected |
Use the provided buffer as theraw_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 line387 of fileraw_ostream.h.
ReferencesSize.
void raw_ostream::SetBuffered | ( | ) |
Set the stream to be buffered, with an automatically determined buffer size.
Definition at line97 of fileraw_ostream.cpp.
Referencespreferred_buffer_size(),SetBufferSize(),SetUnbuffered(), andSize.
Referenced bywrite().
| inline |
Set the stream to be buffered, using the specified buffer size.
Definition at line167 of fileraw_ostream.h.
Referenced bySetBuffered().
| 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 line185 of fileraw_ostream.h.
Referencesflush().
Referenced byllvm::raw_string_ostream::raw_string_ostream(),llvm::raw_svector_ostream::raw_svector_ostream(), andSetBuffered().
| inline |
tell - Return the current offset with the file.
Definition at line147 of fileraw_ostream.h.
ReferencesGetNumBytesInBuffer().
Referenced byllvm::gsym::FileWriter::alignTo(),llvm::TarWriter::append(),llvm::BitstreamWriter::BackpatchByte(),llvm::dwarf_linker::parallel::DWARFLinkerImpl::LinkContext::cloneAndEmitDebugFrame(),computeMemberData(),llvm::dwarf_linker::parallel::DebugLineSectionEmitter::emit(),llvm::OnDiskChainedHashTableGenerator< Info >::Emit(),llvm::DWARFYAML::emitDebugRanges(),llvm::dwarf_linker::parallel::DwarfUnit::emitDebugStringOffsetSection(),llvm::dwarf_linker::parallel::DwarfUnit::emitPubAcceleratorEntry(),llvm::dwarf_linker::parallel::SectionDescriptor::emitString(),getSymbols(),pad(),llvm::CGDataOStream::patch(),llvm::ProfOStream::patch(),printLine(),printWithSpacePadding(),llvm::raw_pwrite_stream::pwrite(),llvm::LoongArchAsmBackend::relaxDwarfLineAddr(),llvm::RISCVAsmBackend::relaxDwarfLineAddr(),llvm::raw_string_ostream::reserveExtraSpace(),llvm::raw_svector_ostream::reserveExtraSpace(),llvm::CGDataOStream::tell(),llvm::gsym::FileWriter::tell(),llvm::ProfOStream::tell(),llvm::object::OffloadBinary::write(),llvm::coverage::TestingFormatWriter::write(),writeCOFF(),writeDIE(),writeDWARFExpression(),writeDWARFLists(),llvm::MachObjectWriter::writeDysymtabLoadCommand(),writeFragment(),llvm::MachObjectWriter::writeHeader(),llvm::MachObjectWriter::writeLinkeditLoadCommand(),llvm::MachObjectWriter::writeLinkerOptionsLoadCommand(),writeListEntry(),writeMemProfV2(),writeMemProfV3(),llvm::WinCOFFWriter::writeObject(),llvm::DXContainerObjectWriter::writeObject(),llvm::MachObjectWriter::writeObject(),llvm::MachObjectWriter::writeSection(),llvm::MCAssembler::writeSectionData(),llvm::MachObjectWriter::writeSegmentLoadCommand(),writeSymbolTableHeader(), andllvm::MachObjectWriter::writeSymtabLoadCommand().
raw_ostream & raw_ostream::write | ( | constchar * | Ptr, |
size_t | Size | ||
) |
Definition at line245 of fileraw_ostream.cpp.
Referencesassert(),LLVM_UNLIKELY,Ptr,SetBuffered(),Size, andwrite().
raw_ostream & raw_ostream::write | ( | unsignedchar | C | ) |
Definition at line225 of fileraw_ostream.cpp.
Referencesllvm::CallingConv::C,LLVM_UNLIKELY,SetBuffered(), andwrite().
Referenced byllvm::BitstreamWriter::BackpatchByte(),changeColor(),llvm::dwarf_linker::parallel::SectionDescriptor::emitBinaryData(),llvm::InstrProfRecordWriterTrait::EmitData(),llvm::DWARFYAML::emitDebugAbbrev(),llvm::DWARFYAML::emitDebugInfo(),llvm::DWARFYAML::emitDebugLine(),llvm::DWARFYAML::emitDebugNames(),llvm::DWARFYAML::emitDebugStr(),emitExternalFile(),emitFileEntry(),EmitInlineAsmStr(),llvm::dwarf_linker::parallel::SectionDescriptor::emitIntVal(),llvm::InstrProfRecordWriterTrait::EmitKey(),emitMagic(),emitPubSection(),emitStrTab(),emitVersion(),llvm::circular_raw_ostream::flushBufferWithBanner(),llvm::remarks::BitstreamRemarkSerializerHelper::flushToStream(),llvm::DWARFYAML::Data::getAbbrevTableContentByIndex(),llvm::orc::DumpObjects::operator()(),operator<<(),operator<<(),llvm::PGOCtxProfileWriter::PGOCtxProfileWriter(),printBigArchiveMemberHeader(),printBSDMemberHeader(),resetColor(),reverseColor(),llvm::remarks::StringTable::serialize(),llvm::objcopy::wasm::Writer::write(),llvm::objcopy::xcoff::XCOFFWriter::write(),llvm::objcopy::elf::BinaryWriter::write(),llvm::objcopy::elf::IHexWriter::write(),llvm::objcopy::elf::SRECWriter::write(),llvm::msgpack::Writer::write(),llvm::mcdxbc::Signature::write(),llvm::coverage::TestingFormatWriter::write(),llvm::mcdxbc::PSVRuntimeInfo::write(),llvm::support::endian::write(),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(),llvm::gsym::FileWriter::writeData(),writeDIE(),writeDWARFLists(),llvm::dxil::WriteDXILToFile(),writeECSymbols(),llvm::msgpack::Writer::writeExt(),writeExtendedOpcode(),writeFragment(),llvm::writeIndexToFile(),writeInteger(),writeListEntry(),writeLoadConfig(),writeMemProfSchema(),writeMemProfV2(),writeMemProfV3(),llvm::ARMAsmBackend::writeNopData(),llvm::LoongArchAsmBackend::writeNopData(),llvm::RISCVAsmBackend::writeNopData(),llvm::XtensaMCAsmBackend::writeNopData(),llvm::gsym::FileWriter::writeSLEB(),writeSymbolMap(),writeSymbolTable(),llvm::writeThinLinkBitcodeToFile(),llvm::gsym::FileWriter::writeU16(),llvm::gsym::FileWriter::writeU32(),llvm::gsym::FileWriter::writeU64(),llvm::gsym::FileWriter::writeU8(),writeUint32(),writeUint64(),writeUint8(),llvm::gsym::FileWriter::writeULEB(),writeUniversalArchsToStream(),writeWithCommas(),llvm::yaml::yaml2archive(),llvm::yaml::yaml2offload(), andZeroFillBytes().
raw_ostream & raw_ostream::write_escaped | ( | StringRef | Str, |
bool | UseHexEscapes =false | ||
) |
OutputStr
, turning '\', '\t', '
', '"', and anything that doesn't satisfy llvm::isPrint into an escape sequence.
Definition at line168 of fileraw_ostream.cpp.
Referenced byllvm::object::ArchiveMemberHeader::ArchiveMemberHeader(),llvm::AsmToken::dump(),llvm::DWARFContext::dump(),llvm::DWARFFormValue::dump(),llvm::StringToOffsetTable::EmitString(),llvm::object::ArchiveMemberHeader::getName(),llvm::PrettyStackTraceProgram::print(),llvm::Pattern::printSubstitutions(),llvm::MCExternalSymbolizer::tryAddingPcLoadReferenceComment(), andllvm::AArch64ExternalSymbolizer::tryAddingSymbolicOperand().
raw_ostream & raw_ostream::write_hex | ( | unsigned long long | N | ) |
OutputN
in hexadecimal, without any prefix or padding.
Definition at line145 of fileraw_ostream.cpp.
Referencesllvm::Lower,N, andllvm::write_hex().
Referenced bydumpDataAux(),printExpr(),printHex32(),llvm::HexagonShuffler::shuffle(), andllvm::InstrProfWriter::writeRecordInText().
raw_ostream & raw_ostream::write_uuid | ( | constuuid_t | UUID | ) |
Definition at line158 of fileraw_ostream.cpp.
Referencesllvm::format(), andIdx.
Referenced bydumpUUID(), andllvm::yaml::ScalarTraits< uuid_t >::output().
raw_ostream & raw_ostream::write_zeros | ( | unsigned | NumZeros | ) |
write_zeros - Insert 'NumZeros' nulls.
Definition at line500 of fileraw_ostream.cpp.
Referenced byllvm::gsym::FileWriter::alignTo(),llvm::DWARFYAML::Data::getAbbrevTableContentByIndex(),llvm::LoongArchAsmBackend::relaxDwarfLineAddr(),llvm::RISCVAsmBackend::relaxDwarfLineAddr(),llvm::object::OffloadBinary::write(),writeCOFF(),llvm::MachObjectWriter::writeLinkerOptionsLoadCommand(),writeLoadConfig(),llvm::CSKYAsmBackend::writeNopData(),llvm::LoongArchAsmBackend::writeNopData(),llvm::MipsAsmBackend::writeNopData(),llvm::DXContainerObjectWriter::writeObject(),llvm::MachObjectWriter::writeObject(), andwriteUniversalArchsToStream().
| staticconstexpr |
Definition at line114 of fileraw_ostream.h.
Referenced byllvm::WithColor::WithColor().
| staticconstexpr |
Definition at line118 of fileraw_ostream.h.
Referenced byllvm::WithColor::WithColor().
| staticconstexpr |
Definition at line122 of fileraw_ostream.h.
| staticconstexpr |
Definition at line126 of fileraw_ostream.h.
| staticconstexpr |
Definition at line128 of fileraw_ostream.h.
| staticconstexpr |
Definition at line124 of fileraw_ostream.h.
| staticconstexpr |
Definition at line127 of fileraw_ostream.h.
| staticconstexpr |
Definition at line123 of fileraw_ostream.h.
| staticconstexpr |
Definition at line129 of fileraw_ostream.h.
| staticconstexpr |
Definition at line125 of fileraw_ostream.h.
| staticconstexpr |
Definition at line120 of fileraw_ostream.h.
Referenced byllvm::WithColor::WithColor(), andllvm::MCInstPrinter::WithMarkup::WithMarkup().
| staticconstexpr |
Definition at line116 of fileraw_ostream.h.
Referenced byllvm::SMDiagnostic::print(),llvm::WithColor::WithColor(), andllvm::MCInstPrinter::WithMarkup::WithMarkup().
| staticconstexpr |
Definition at line119 of fileraw_ostream.h.
Referenced byllvm::WithColor::WithColor().
| staticconstexpr |
Definition at line115 of fileraw_ostream.h.
Referenced byllvm::WithColor::WithColor(), andllvm::MCInstPrinter::WithMarkup::WithMarkup().
| staticconstexpr |
Definition at line131 of fileraw_ostream.h.
| staticconstexpr |
Definition at line130 of fileraw_ostream.h.
Referenced bychangeColor(), andllvm::SMDiagnostic::print().
| staticconstexpr |
Definition at line121 of fileraw_ostream.h.
| staticconstexpr |
Definition at line117 of fileraw_ostream.h.
Referenced byllvm::WithColor::WithColor(), andllvm::MCInstPrinter::WithMarkup::WithMarkup().