LLVM  8.0.1
Public Member Functions | List of all members
llvm::ScopedPrinter Class Reference

#include "llvm/Support/ScopedPrinter.h"

Public Member Functions

 ScopedPrinter (raw_ostream &OS)
 
void flush ()
 
void indent (int Levels=1)
 
void unindent (int Levels=1)
 
void resetIndent ()
 
int getIndentLevel ()
 
void setPrefix (StringRef P)
 
void printIndent ()
 
template<typename T >
HexNumber hex (T Value)
 
template<typename T , typename TEnum >
void printEnum (StringRef Label, T Value, ArrayRef< EnumEntry< TEnum >> EnumValues)
 
template<typename T , typename TFlag >
void printFlags (StringRef Label, T Value, ArrayRef< EnumEntry< TFlag >> Flags, TFlag EnumMask1={}, TFlag EnumMask2={}, TFlag EnumMask3={})
 
template<typename T >
void printFlags (StringRef Label, T Value)
 
void printNumber (StringRef Label, uint64_t Value)
 
void printNumber (StringRef Label, uint32_t Value)
 
void printNumber (StringRef Label, uint16_t Value)
 
void printNumber (StringRef Label, uint8_t Value)
 
void printNumber (StringRef Label, int64_t Value)
 
void printNumber (StringRef Label, int32_t Value)
 
void printNumber (StringRef Label, int16_t Value)
 
void printNumber (StringRef Label, int8_t Value)
 
void printNumber (StringRef Label, const APSInt &Value)
 
void printBoolean (StringRef Label, bool Value)
 
template<typename... T>
void printVersion (StringRef Label, T... Version)
 
template<typename T >
void printList (StringRef Label, const T &List)
 
template<typename T , typename U >
void printList (StringRef Label, const T &List, const U &Printer)
 
template<typename T >
void printHexList (StringRef Label, const T &List)
 
template<typename T >
void printHex (StringRef Label, T Value)
 
template<typename T >
void printHex (StringRef Label, StringRef Str, T Value)
 
template<typename T >
void printSymbolOffset (StringRef Label, StringRef Symbol, T Value)
 
void printString (StringRef Value)
 
void printString (StringRef Label, StringRef Value)
 
void printString (StringRef Label, const std::string &Value)
 
void printString (StringRef Label, const char *Value)
 
template<typename T >
void printNumber (StringRef Label, StringRef Str, T Value)
 
void printBinary (StringRef Label, StringRef Str, ArrayRef< uint8_t > Value)
 
void printBinary (StringRef Label, StringRef Str, ArrayRef< char > Value)
 
void printBinary (StringRef Label, ArrayRef< uint8_t > Value)
 
void printBinary (StringRef Label, ArrayRef< char > Value)
 
void printBinary (StringRef Label, StringRef Value)
 
void printBinaryBlock (StringRef Label, ArrayRef< uint8_t > Value, uint32_t StartOffset)
 
void printBinaryBlock (StringRef Label, ArrayRef< uint8_t > Value)
 
void printBinaryBlock (StringRef Label, StringRef Value)
 
template<typename T >
void printObject (StringRef Label, const T &Value)
 
raw_ostreamstartLine ()
 
raw_ostreamgetOStream ()
 

Detailed Description

Definition at line 69 of file ScopedPrinter.h.

Constructor & Destructor Documentation

◆ ScopedPrinter()

llvm::ScopedPrinter::ScopedPrinter ( raw_ostream OS)
inline

Definition at line 71 of file ScopedPrinter.h.

Member Function Documentation

◆ flush()

void llvm::ScopedPrinter::flush ( )
inline

Definition at line 73 of file ScopedPrinter.h.

◆ getIndentLevel()

int llvm::ScopedPrinter::getIndentLevel ( )
inline

Definition at line 83 of file ScopedPrinter.h.

◆ getOStream()

raw_ostream& llvm::ScopedPrinter::getOStream ( )
inline

◆ hex()

template<typename T >
HexNumber llvm::ScopedPrinter::hex ( T  Value)
inline

Definition at line 93 of file ScopedPrinter.h.

◆ indent()

void llvm::ScopedPrinter::indent ( int  Levels = 1)
inline

◆ printBinary() [1/5]

void llvm::ScopedPrinter::printBinary ( StringRef  Label,
StringRef  Str,
ArrayRef< uint8_t >  Value 
)
inline

Definition at line 278 of file ScopedPrinter.h.

◆ printBinary() [2/5]

void llvm::ScopedPrinter::printBinary ( StringRef  Label,
StringRef  Str,
ArrayRef< char Value 
)
inline

◆ printBinary() [3/5]

void llvm::ScopedPrinter::printBinary ( StringRef  Label,
ArrayRef< uint8_t >  Value 
)
inline

Definition at line 288 of file ScopedPrinter.h.

◆ printBinary() [4/5]

void llvm::ScopedPrinter::printBinary ( StringRef  Label,
ArrayRef< char Value 
)
inline

◆ printBinary() [5/5]

void llvm::ScopedPrinter::printBinary ( StringRef  Label,
StringRef  Value 
)
inline

◆ printBinaryBlock() [1/3]

void llvm::ScopedPrinter::printBinaryBlock ( StringRef  Label,
ArrayRef< uint8_t >  Value,
uint32_t  StartOffset 
)
inline

◆ printBinaryBlock() [2/3]

void llvm::ScopedPrinter::printBinaryBlock ( StringRef  Label,
ArrayRef< uint8_t >  Value 
)
inline

Definition at line 309 of file ScopedPrinter.h.

◆ printBinaryBlock() [3/3]

void llvm::ScopedPrinter::printBinaryBlock ( StringRef  Label,
StringRef  Value 
)
inline

◆ printBoolean()

void llvm::ScopedPrinter::printBoolean ( StringRef  Label,
bool  Value 
)
inline

Definition at line 199 of file ScopedPrinter.h.

◆ printEnum()

template<typename T , typename TEnum >
void llvm::ScopedPrinter::printEnum ( StringRef  Label,
T  Value,
ArrayRef< EnumEntry< TEnum >>  EnumValues 
)
inline

◆ printFlags() [1/2]

template<typename T , typename TFlag >
void llvm::ScopedPrinter::printFlags ( StringRef  Label,
T  Value,
ArrayRef< EnumEntry< TFlag >>  Flags,
TFlag  EnumMask1 = {},
TFlag  EnumMask2 = {},
TFlag  EnumMask3 = {} 
)
inline

◆ printFlags() [2/2]

template<typename T >
void llvm::ScopedPrinter::printFlags ( StringRef  Label,
T  Value 
)
inline

Definition at line 150 of file ScopedPrinter.h.

References llvm::EnumEntry< T >::Value.

◆ printHex() [1/2]

template<typename T >
void llvm::ScopedPrinter::printHex ( StringRef  Label,
T  Value 
)
inline

◆ printHex() [2/2]

template<typename T >
void llvm::ScopedPrinter::printHex ( StringRef  Label,
StringRef  Str,
T  Value 
)
inline

Definition at line 250 of file ScopedPrinter.h.

◆ printHexList()

template<typename T >
void llvm::ScopedPrinter::printHexList ( StringRef  Label,
const T List 
)
inline

Definition at line 234 of file ScopedPrinter.h.

◆ printIndent()

void llvm::ScopedPrinter::printIndent ( )
inline

Definition at line 87 of file ScopedPrinter.h.

References llvm::cl::Prefix.

◆ printList() [1/2]

template<typename T >
void llvm::ScopedPrinter::printList ( StringRef  Label,
const T List 
)
inline

Definition at line 209 of file ScopedPrinter.h.

◆ printList() [2/2]

template<typename T , typename U >
void llvm::ScopedPrinter::printList ( StringRef  Label,
const T List,
const U &  Printer 
)
inline

Definition at line 222 of file ScopedPrinter.h.

References Printer.

◆ printNumber() [1/10]

void llvm::ScopedPrinter::printNumber ( StringRef  Label,
uint64_t  Value 
)
inline

◆ printNumber() [2/10]

void llvm::ScopedPrinter::printNumber ( StringRef  Label,
uint32_t  Value 
)
inline

Definition at line 167 of file ScopedPrinter.h.

◆ printNumber() [3/10]

void llvm::ScopedPrinter::printNumber ( StringRef  Label,
uint16_t  Value 
)
inline

Definition at line 171 of file ScopedPrinter.h.

◆ printNumber() [4/10]

void llvm::ScopedPrinter::printNumber ( StringRef  Label,
uint8_t  Value 
)
inline

Definition at line 175 of file ScopedPrinter.h.

◆ printNumber() [5/10]

void llvm::ScopedPrinter::printNumber ( StringRef  Label,
int64_t  Value 
)
inline

Definition at line 179 of file ScopedPrinter.h.

◆ printNumber() [6/10]

void llvm::ScopedPrinter::printNumber ( StringRef  Label,
int32_t  Value 
)
inline

Definition at line 183 of file ScopedPrinter.h.

◆ printNumber() [7/10]

void llvm::ScopedPrinter::printNumber ( StringRef  Label,
int16_t  Value 
)
inline

Definition at line 187 of file ScopedPrinter.h.

◆ printNumber() [8/10]

void llvm::ScopedPrinter::printNumber ( StringRef  Label,
int8_t  Value 
)
inline

Definition at line 191 of file ScopedPrinter.h.

◆ printNumber() [9/10]

void llvm::ScopedPrinter::printNumber ( StringRef  Label,
const APSInt Value 
)
inline

Definition at line 195 of file ScopedPrinter.h.

◆ printNumber() [10/10]

template<typename T >
void llvm::ScopedPrinter::printNumber ( StringRef  Label,
StringRef  Str,
T  Value 
)
inline

Definition at line 274 of file ScopedPrinter.h.

◆ printObject()

template<typename T >
void llvm::ScopedPrinter::printObject ( StringRef  Label,
const T Value 
)
inline

Definition at line 319 of file ScopedPrinter.h.

◆ printString() [1/4]

void llvm::ScopedPrinter::printString ( StringRef  Value)
inline

◆ printString() [2/4]

void llvm::ScopedPrinter::printString ( StringRef  Label,
StringRef  Value 
)
inline

Definition at line 261 of file ScopedPrinter.h.

◆ printString() [3/4]

void llvm::ScopedPrinter::printString ( StringRef  Label,
const std::string &  Value 
)
inline

Definition at line 265 of file ScopedPrinter.h.

◆ printString() [4/4]

void llvm::ScopedPrinter::printString ( StringRef  Label,
const char Value 
)
inline

Definition at line 269 of file ScopedPrinter.h.

◆ printSymbolOffset()

template<typename T >
void llvm::ScopedPrinter::printSymbolOffset ( StringRef  Label,
StringRef  Symbol,
T  Value 
)
inline

Definition at line 255 of file ScopedPrinter.h.

◆ printVersion()

template<typename... T>
void llvm::ScopedPrinter::printVersion ( StringRef  Label,
T...  Version 
)
inline

Definition at line 203 of file ScopedPrinter.h.

References llvm::IndexedInstrProf::Version.

◆ resetIndent()

void llvm::ScopedPrinter::resetIndent ( )
inline

Definition at line 81 of file ScopedPrinter.h.

◆ setPrefix()

void llvm::ScopedPrinter::setPrefix ( StringRef  P)
inline

Definition at line 85 of file ScopedPrinter.h.

References P, and llvm::cl::Prefix.

Referenced by emitNullTerminatedSymbolName().

◆ startLine()

raw_ostream& llvm::ScopedPrinter::startLine ( )
inline

◆ unindent()

void llvm::ScopedPrinter::unindent ( int  Levels = 1)
inline

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