A raw_ostream of a file for reading/writing/seeking.
Synopsis
Declared in <llvm/Support/raw_ostream.h>
class raw_fd_stream
: public raw_fd_ostream
Base Classes
Name |
Description |
A raw_ostream that writes to a file descriptor. |
Type Aliases
Name |
Description |
Output a formatted UUID with dash separators. |
Enums
Name |
Description |
ANSI terminal color codes. |
|
Discriminator for concrete raw_ostream subclasses. |
Member Functions
Name |
Description |
|
Constructors |
|
Copy‐assignment is deleted. |
Return the size of the current stream buffer, or the preferred size if buffering is enabled but the buffer has not been allocated yet. |
|
Return the number of bytes currently held in the stream buffer. |
|
Set the stream to be buffered, using the specified buffer size. |
|
Set the stream to be buffered, with an automatically determined buffer size. |
|
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. |
|
|
Changes the foreground color of text that will be output from this point forward. |
Set the flag read by has_error() to false. If the error flag is set at the time when this raw_ostream's destructor is called, report_fatal_error is called to report the error. Use clear_error() after handling the error to avoid this behavior. |
|
Manually flush the stream and close the file. Note that this does not call fsync. |
|
Return true if ANSI color output is currently enabled. |
|
|
Enable or disable ANSI color output for subsequent writes. |
Return the sticky error code for this stream. |
|
Flush buffered output to the underlying device. |
|
Return the concrete stream kind discriminator. |
|
|
Return true if the file stream supports ANSI colors. |
Return the value of the flag in this raw_fd_ostream indicating whether an output error has been encountered. This doesn't implicitly flush any pending output. Also, it doesn't guarantee to detect all errors unless the stream has been closed. |
|
indent ‐ Insert 'NumSpaces' spaces. |
|
Return true if the underlying file is a regular file. |
|
|
Return true if output from this stream is shown to the user (e.g. a TTY). |
Locks the underlying file. |
|
Write |
|
This reads the |
|
|
If possible, pre‐allocate |
|
Resets the colors to terminal defaults. Call this when you are done outputting colored text, or before program exit. |
|
Reverses the foreground and background colors. |
Flushes the stream and repositions the underlying file descriptor position to the offset specified from the beginning of the file. |
|
Return true if this stream can seek its underlying file descriptor. |
|
tell ‐ Return the current offset with the file. |
|
Tie this stream to the specified stream. Replaces any existing tied‐to stream. Specifying a nullptr unties the stream. This is intended for to tie errs() to outs(), so that outs() is flushed whenever something is written to errs(), preventing weird and hard‐to‐test output when stderr is redirected to stdout. |
|
Tries to lock the underlying file within the specified period. |
|
|
|
Output |
|
Output |
|
Write UUID |
|
write_zeros ‐ Insert 'NumZeros' nulls. |
|
Left shift operators |
Static Member Functions
Name |
Description |
Check if |
Static Data Members
Name |
Description |
Black foreground color constant. |
|
Blue foreground color constant. |
|
Bright black (gray) foreground color constant. |
|
Bright blue foreground color constant. |
|
Bright cyan foreground color constant. |
|
Bright green foreground color constant. |
|
Bright magenta foreground color constant. |
|
Bright red foreground color constant. |
|
Bright white foreground color constant. |
|
Bright yellow foreground color constant. |
|
Cyan foreground color constant. |
|
Green foreground color constant. |
|
Magenta foreground color constant. |
|
Red foreground color constant. |
|
Reset colors to the terminal default. |
|
Saved‐color constant that preserves the current color. |
|
White foreground color constant. |
|
Yellow foreground color constant. |
Protected Member Functions
Name |
Description |
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. |
|
Set the flag indicating that an output error has been encountered. |
|
Return the beginning of the current stream buffer, or 0 if the stream is unbuffered. |
|
Return the file descriptor. |
|
Advance the tracked file position by |
|
|
Return an efficient buffer size for the underlying output mechanism. |
Non-Member Functions
Name |
Description |
Determine if the raw_ostream provided is connected to a terminal. If so, generate a warning message to errs() advising against display of bitcode and return true. Otherwise just return false. Check for output written to a console |
|
Print statistics to the given output stream. |
|
Print statistics in JSON format. This does include all global timers ( |
|
Create and return a pass that writes the module to the specified ostream. Note that this pass is designed for use with the legacy pass manager. |
|
MIR2VecPrinter pass ‐ This pass prints out the MIR2Vec embeddings for machine functions, basic blocks and instructions. |
|
MIR2VecVocabPrinter pass ‐ This pass prints out the MIR2Vec vocabulary contents to the given stream as a debugging tool. |
|
MachineFunctionPrinter pass ‐ This pass prints out the machine function to the given stream as a debugging tool. |
|
Create and return a pass that prints functions to the specified |
|
MIRPrinting pass ‐ this pass prints out the LLVM IR into the given stream using the MIR serialization format. |
|
Create and return a pass that writes the module to the specified |
|
Stream insertion operator |
|
Debug print ModRefInfo. |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Write |
|
Stream insertion operator |
|
Stream insertion operator |
|
Write the spelled name of |
|
Write a human readable form of |
|
Print a short description useful for debugging or logging. |
|
Stream insertion operator |
|
Print a version number. |
|
Stream insertion operator |
|
Stream insertion operator |
|
Write a formatted object to |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
An raw_ostream inserter for modules. |
|
Stream insertion operator |
|
Forward declarations of output streams for debug purposes. |
|
Stream insertion operator |
|
Write optional value |
|
Stream insertion operator |
|
Invoke |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Print |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Print |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Prints |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Debug print MemoryEffects. |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Write a representation of |
|
Stream insertion operator |
|
Stream insertion operator |
|
Write UTC time point |
|
Write a textual representation of |
|
Write |
|
Stream insertion operator |
|
Stream insertion operator |
|
Write |
|
Stream insertion operator |
|
Stream insertion operator |
|
Print a RegionNode. |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Print the name of this node's function. |
|
Stream operator function for |
|
Stream insertion operator |
|
Write a textual representation of error |
|
Stream insertion operator |
|
Stream insertion operator |
|
Print a short description useful for debugging or logging. |
|
Stream insertion operator |
|
Stream insertion operator |
|
<< operator for AliasResult. |
|
Write time point |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Write |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream a human‐readable representation of |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Print out a name of an LLVM value without any prefixes. |
|
Print MIR using New Pass Manager (uses FunctionAnalysisManager). If |
|
Print MIR using Legacy Pass Manager (uses MachineModuleInfo). If |
|
Print LLVM IR using the MIR serialization format to the given output stream. |
|
If ‐time‐passes has been specified, report the timings immediately and then reset the timers to zero. By default it uses the stream created by CreateInfoOutputFile(). |
|
Write profiling data to output stream. Data produced is JSON, in Chrome "Trace Event" format, see https://docs.google.com/document/d/1CvAClvFfyA5R‐PhYUmn5OOQtYMH4h6I0nSsKchNAySU/preview |
|
Write floating‐point |
|
Write hex value |
|
Write signed long long |
|
Write unsigned long |
|
Write signed long |
|
Write unsigned long long |
|
Write unsigned int |
|
Write signed int |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Print intervals to output stream. |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Print |
|
Prints the compiler build configuration. Designed for compiler developers, not compiler end‐users. Intended to be used in ‐‐version output when enabled. |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Attempts to write an IFS interface file to a raw_ostream. |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Serializes this Value to JSON, writing it to the provided stream. The formatting is compact (no extra whitespace) and deterministic. For pretty‐printing, use the formatv() format_provider below. |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Render a SymbolMap entry. |
|
Render an array of SymbolStringPtrs. |
|
Stream insertion operator |
|
Stream insertion operator |
|
Render a SymbolLookupSet. |
|
Print a MemDeallocPolicy. |
|
Print an AllocGroup. |
|
Dump a SymbolStringPool. Useful for debugging dangling‐pointer crashes. |
|
Stream insertion operator |
|
Render a SymbolLookupSet entry. |
|
Render a SymbolAliasMap. |
|
Render a JITDylibSearchOrder. |
|
Print a MemProt as an RWX triple. |
|
Render a SymbolMap. |
|
Render a SymbolLookupFlags instance. |
|
Render a LookupKind. |
|
Render a SymbolState. |
|
Render a SymbolDependendeMap. |
|
Render a SymbolNameSet. |
|
Stream insertion operator |
|
Render a SymbolDependenceMap entry. |
|
Render a SymbolNameVector. |
|
Render a SymbolFlagsMap entry. |
|
Render a SymbolFlagsMap. |
|
Render a MaterializationUnit. |
|
Render JITSymbolFlags. |
|
/ Render a JITDylibLookupFlags instance. |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Print the stack trace using the given |
|
Debugging output for Memory::ProtectionFlags. |
|
Debugging output for MemoryBlock. |
|
Print a command argument, and optionally quote it. |
|
This is a function compatible with cl::AddExtraVersionPrinter, which adds info about the current target triple and detected CPU. |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
Stream insertion operator |
|
The following contains the serialization interface for root elements |
|
Stream insertion operator |
|
Stream insertion operator |
Derived Classes
Name |
Description |
Created with MrDocs