LLVM  6.0.0svn
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 ()
 
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)
 
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.

◆ getOStream()

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

◆ hex()

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

Definition at line 91 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 272 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 282 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 303 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 197 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 148 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 248 of file ScopedPrinter.h.

◆ printHexList()

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

Definition at line 232 of file ScopedPrinter.h.

References llvm::object::Comma.

◆ printIndent()

void llvm::ScopedPrinter::printIndent ( )
inline

Definition at line 85 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 207 of file ScopedPrinter.h.

References llvm::object::Comma.

◆ printList() [2/2]

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

Definition at line 220 of file ScopedPrinter.h.

References llvm::object::Comma, and 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 165 of file ScopedPrinter.h.

◆ printNumber() [3/10]

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

Definition at line 169 of file ScopedPrinter.h.

◆ printNumber() [4/10]

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

Definition at line 173 of file ScopedPrinter.h.

◆ printNumber() [5/10]

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

Definition at line 177 of file ScopedPrinter.h.

◆ printNumber() [6/10]

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

Definition at line 181 of file ScopedPrinter.h.

◆ printNumber() [7/10]

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

Definition at line 185 of file ScopedPrinter.h.

◆ printNumber() [8/10]

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

Definition at line 189 of file ScopedPrinter.h.

◆ printNumber() [9/10]

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

Definition at line 193 of file ScopedPrinter.h.

◆ printNumber() [10/10]

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

Definition at line 268 of file ScopedPrinter.h.

◆ printObject()

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

Definition at line 313 of file ScopedPrinter.h.

◆ printString() [1/3]

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

◆ printString() [2/3]

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

Definition at line 259 of file ScopedPrinter.h.

◆ printString() [3/3]

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

Definition at line 263 of file ScopedPrinter.h.

◆ printSymbolOffset()

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

Definition at line 253 of file ScopedPrinter.h.

◆ printVersion()

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

Definition at line 201 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 83 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: