LLVM
15.0.0git
|
#include "llvm/Support/ScopedPrinter.h"
Public Types | |
enum | ScopedPrinterKind { ScopedPrinterKind::Base, ScopedPrinterKind::JSON } |
Public Member Functions | |
ScopedPrinter (raw_ostream &OS, ScopedPrinterKind Kind=ScopedPrinterKind::Base) | |
ScopedPrinterKind | getKind () const |
virtual | ~ScopedPrinter ()=default |
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) |
virtual void | printNumber (StringRef Label, uint64_t Value) |
virtual void | printNumber (StringRef Label, uint32_t Value) |
virtual void | printNumber (StringRef Label, uint16_t Value) |
virtual void | printNumber (StringRef Label, uint8_t Value) |
virtual void | printNumber (StringRef Label, int64_t Value) |
virtual void | printNumber (StringRef Label, int32_t Value) |
virtual void | printNumber (StringRef Label, int16_t Value) |
virtual void | printNumber (StringRef Label, int8_t Value) |
virtual void | printNumber (StringRef Label, const APSInt &Value) |
template<typename T > | |
void | printNumber (StringRef Label, StringRef Str, T Value) |
virtual void | printBoolean (StringRef Label, bool Value) |
template<typename... T> | |
void | printVersion (StringRef Label, T... Version) |
template<typename T > | |
void | printList (StringRef Label, const ArrayRef< T > List) |
virtual void | printList (StringRef Label, const ArrayRef< bool > List) |
virtual void | printList (StringRef Label, const ArrayRef< std::string > List) |
virtual void | printList (StringRef Label, const ArrayRef< uint64_t > List) |
virtual void | printList (StringRef Label, const ArrayRef< uint32_t > List) |
virtual void | printList (StringRef Label, const ArrayRef< uint16_t > List) |
virtual void | printList (StringRef Label, const ArrayRef< uint8_t > List) |
virtual void | printList (StringRef Label, const ArrayRef< int64_t > List) |
virtual void | printList (StringRef Label, const ArrayRef< int32_t > List) |
virtual void | printList (StringRef Label, const ArrayRef< int16_t > List) |
virtual void | printList (StringRef Label, const ArrayRef< int8_t > List) |
virtual void | printList (StringRef Label, const ArrayRef< APSInt > 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) |
virtual void | printString (StringRef Value) |
virtual void | printString (StringRef Label, StringRef 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) |
virtual void | objectBegin () |
virtual void | objectBegin (StringRef Label) |
virtual void | objectEnd () |
virtual void | arrayBegin () |
virtual void | arrayBegin (StringRef Label) |
virtual void | arrayEnd () |
virtual raw_ostream & | startLine () |
virtual raw_ostream & | getOStream () |
Static Public Member Functions | |
static bool | classof (const ScopedPrinter *SP) |
Definition at line 101 of file ScopedPrinter.h.
|
strong |
Enumerator | |
---|---|
Base | |
JSON |
Definition at line 103 of file ScopedPrinter.h.
|
inline |
Definition at line 108 of file ScopedPrinter.h.
|
virtualdefault |
|
inlinevirtual |
Reimplemented in llvm::JSONScopedPrinter.
Definition at line 399 of file ScopedPrinter.h.
Referenced by llvm::ListScope::ListScope(), and llvm::ListScope::setPrinter().
|
inlinevirtual |
Reimplemented in llvm::JSONScopedPrinter.
Definition at line 401 of file ScopedPrinter.h.
|
inlinevirtual |
Reimplemented in llvm::JSONScopedPrinter.
Definition at line 403 of file ScopedPrinter.h.
Referenced by llvm::ListScope::~ListScope().
|
inlinestatic |
Definition at line 114 of file ScopedPrinter.h.
|
inline |
Definition at line 120 of file ScopedPrinter.h.
References llvm::raw_ostream::flush().
|
inline |
Definition at line 130 of file ScopedPrinter.h.
|
inline |
Definition at line 112 of file ScopedPrinter.h.
Referenced by classof(), and llvm::JSONScopedPrinter::classof().
|
inlinevirtual |
Definition at line 410 of file ScopedPrinter.h.
Referenced by printVersion(), llvm::codeview::TypeDumpVisitor::visitMemberBegin(), and llvm::codeview::TypeDumpVisitor::visitTypeBegin().
Definition at line 140 of file ScopedPrinter.h.
Referenced by printFlags(), printHex(), and printSymbolOffset().
|
inline |
Definition at line 122 of file ScopedPrinter.h.
Referenced by llvm::codeview::TypeDumpVisitor::visitMemberBegin(), and llvm::codeview::TypeDumpVisitor::visitTypeBegin().
|
inlinevirtual |
Reimplemented in llvm::JSONScopedPrinter.
Definition at line 393 of file ScopedPrinter.h.
Referenced by llvm::DictScope::DictScope(), and llvm::DictScope::setPrinter().
|
inlinevirtual |
Reimplemented in llvm::JSONScopedPrinter.
Definition at line 395 of file ScopedPrinter.h.
|
inlinevirtual |
Reimplemented in llvm::JSONScopedPrinter.
Definition at line 397 of file ScopedPrinter.h.
Referenced by llvm::DictScope::~DictScope().
Definition at line 362 of file ScopedPrinter.h.
References llvm::makeArrayRef().
Definition at line 358 of file ScopedPrinter.h.
|
inline |
Definition at line 352 of file ScopedPrinter.h.
References llvm::makeArrayRef().
|
inline |
Definition at line 348 of file ScopedPrinter.h.
Definition at line 368 of file ScopedPrinter.h.
References llvm::makeArrayRef().
Definition at line 379 of file ScopedPrinter.h.
|
inline |
Definition at line 374 of file ScopedPrinter.h.
Referenced by llvm::codeview::TypeDumpVisitor::visitMemberEnd(), and llvm::codeview::TypeDumpVisitor::visitTypeEnd().
Definition at line 383 of file ScopedPrinter.h.
References llvm::makeArrayRef().
|
inlinevirtual |
Reimplemented in llvm::JSONScopedPrinter.
Definition at line 243 of file ScopedPrinter.h.
References startLine().
|
inline |
Definition at line 143 of file ScopedPrinter.h.
References printHex().
Referenced by llvm::codeview::TypeDumpVisitor::visitMemberBegin(), llvm::codeview::TypeDumpVisitor::visitTypeBegin(), and llvm::codeview::TypeDumpVisitor::visitUnknownType().
Definition at line 189 of file ScopedPrinter.h.
References llvm::SmallVectorImpl< T >::emplace_back(), and hex().
|
inline |
Definition at line 162 of file ScopedPrinter.h.
|
inline |
Definition at line 333 of file ScopedPrinter.h.
References hex().
Definition at line 329 of file ScopedPrinter.h.
References hex().
Referenced by printEnum(), and llvm::codeview::TypeDumpVisitor::visitUnknownMember().
|
inline |
Definition at line 322 of file ScopedPrinter.h.
References llvm::SmallVectorImpl< T >::emplace_back(), and List.
|
inline |
|
inlinevirtual |
Reimplemented in llvm::JSONScopedPrinter.
Definition at line 307 of file ScopedPrinter.h.
References List.
|
inlinevirtual |
Reimplemented in llvm::JSONScopedPrinter.
Definition at line 261 of file ScopedPrinter.h.
References List.
|
inlinevirtual |
Reimplemented in llvm::JSONScopedPrinter.
Definition at line 296 of file ScopedPrinter.h.
References List.
|
inlinevirtual |
Reimplemented in llvm::JSONScopedPrinter.
Definition at line 292 of file ScopedPrinter.h.
References List.
|
inlinevirtual |
Reimplemented in llvm::JSONScopedPrinter.
Definition at line 288 of file ScopedPrinter.h.
References List.
|
inlinevirtual |
Reimplemented in llvm::JSONScopedPrinter.
Definition at line 300 of file ScopedPrinter.h.
References llvm::SmallVectorImpl< T >::emplace_back(), and List.
|
inlinevirtual |
Reimplemented in llvm::JSONScopedPrinter.
Definition at line 265 of file ScopedPrinter.h.
References List.
|
inline |
Definition at line 254 of file ScopedPrinter.h.
References llvm::SmallVectorImpl< T >::emplace_back(), List, and llvm::to_string().
|
inlinevirtual |
Reimplemented in llvm::JSONScopedPrinter.
Definition at line 277 of file ScopedPrinter.h.
References List.
|
inlinevirtual |
Reimplemented in llvm::JSONScopedPrinter.
Definition at line 273 of file ScopedPrinter.h.
References List.
|
inlinevirtual |
Reimplemented in llvm::JSONScopedPrinter.
Definition at line 269 of file ScopedPrinter.h.
References List.
|
inlinevirtual |
Reimplemented in llvm::JSONScopedPrinter.
Definition at line 281 of file ScopedPrinter.h.
References llvm::SmallVectorImpl< T >::emplace_back(), and List.
|
inline |
Definition at line 312 of file ScopedPrinter.h.
References List, llvm::AArch64CC::LS, Printer, and startLine().
|
inlinevirtual |
Reimplemented in llvm::JSONScopedPrinter.
Definition at line 234 of file ScopedPrinter.h.
References startLine().
|
inlinevirtual |
Reimplemented in llvm::JSONScopedPrinter.
Definition at line 226 of file ScopedPrinter.h.
References startLine().
|
inlinevirtual |
Reimplemented in llvm::JSONScopedPrinter.
Definition at line 222 of file ScopedPrinter.h.
References startLine().
|
inlinevirtual |
Reimplemented in llvm::JSONScopedPrinter.
Definition at line 218 of file ScopedPrinter.h.
References startLine().
|
inlinevirtual |
Reimplemented in llvm::JSONScopedPrinter.
Definition at line 230 of file ScopedPrinter.h.
References int, and startLine().
|
inline |
Definition at line 239 of file ScopedPrinter.h.
References llvm::to_string().
Reimplemented in llvm::JSONScopedPrinter.
Definition at line 210 of file ScopedPrinter.h.
References startLine().
Reimplemented in llvm::JSONScopedPrinter.
Definition at line 206 of file ScopedPrinter.h.
References startLine().
Reimplemented in llvm::JSONScopedPrinter.
Definition at line 202 of file ScopedPrinter.h.
References startLine().
Referenced by llvm::codeview::TypeDumpVisitor::visitUnknownType().
|
inlinevirtual |
Reimplemented in llvm::JSONScopedPrinter.
Definition at line 214 of file ScopedPrinter.h.
References startLine().
|
inline |
Definition at line 389 of file ScopedPrinter.h.
References printString(), and llvm::to_string().
Reimplemented in llvm::JSONScopedPrinter.
Definition at line 344 of file ScopedPrinter.h.
References startLine().
|
inlinevirtual |
Reimplemented in llvm::JSONScopedPrinter.
Definition at line 342 of file ScopedPrinter.h.
References startLine().
Referenced by printObject().
|
inline |
Definition at line 338 of file ScopedPrinter.h.
References hex(), and llvm::ARMBuildAttrs::Symbol.
|
inline |
Definition at line 247 of file ScopedPrinter.h.
References getOStream(), startLine(), T, and Version.
|
inline |
Definition at line 128 of file ScopedPrinter.h.
|
inline |
Definition at line 132 of file ScopedPrinter.h.
References P.
|
inlinevirtual |
Definition at line 405 of file ScopedPrinter.h.
References printIndent().
Referenced by printBoolean(), printList(), printNumber(), printString(), printVersion(), llvm::codeview::TypeDumpVisitor::visitMemberBegin(), llvm::codeview::TypeDumpVisitor::visitMemberEnd(), llvm::codeview::TypeDumpVisitor::visitTypeBegin(), and llvm::codeview::TypeDumpVisitor::visitTypeEnd().
|
inline |
Definition at line 124 of file ScopedPrinter.h.
Referenced by llvm::codeview::TypeDumpVisitor::visitMemberEnd(), and llvm::codeview::TypeDumpVisitor::visitTypeEnd().