class JSONScopedPrinter

Declaration

class JSONScopedPrinter : public ScopedPrinter { /* full declaration omitted */ };

Declared at: llvm/include/llvm/Support/ScopedPrinter.h:514

Inherits from: ScopedPrinter

Member Variables

private SmallVector<llvm::JSONScopedPrinter::ScopeContext, 8> ScopeHistory
private json::OStream JOS
private std::unique_ptr<DelimitedScope> OuterScope

Method Overview

  • public JSONScopedPrinter(llvm::raw_ostream & OS, bool PrettyPrint = false, std::unique_ptr<DelimitedScope> && OuterScope = std::unique_ptr<llvm::DelimitedScope, std::default_delete<llvm::DelimitedScope>>{})
  • public void arrayBegin()
  • public void arrayBegin(llvm::StringRef Label)
  • public void arrayEnd()
  • public static bool classof(const llvm::ScopedPrinter * SP)
  • private uint64_t hexNumberToInt(llvm::HexNumber Hex)
  • public void objectBegin(llvm::StringRef Label)
  • public void objectBegin()
  • public void objectEnd()
  • private void printAPSInt(const llvm::APSInt & Value)
  • private void printBinaryImpl(llvm::StringRef Label, llvm::StringRef Str, ArrayRef<uint8_t> Value, bool Block, uint32_t StartOffset = 0)
  • public void printBoolean(llvm::StringRef Label, bool Value)
  • private void printFlagsImpl(llvm::StringRef Label, llvm::HexNumber Value, ArrayRef<llvm::HexNumber> Flags)
  • private void printFlagsImpl(llvm::StringRef Label, llvm::HexNumber Value, ArrayRef<llvm::FlagEntry> Flags)
  • private void printHexImpl(llvm::StringRef Label, llvm::HexNumber Value)
  • private void printHexImpl(llvm::StringRef Label, llvm::StringRef Str, llvm::HexNumber Value)
  • private void printHexListImpl(llvm::StringRef Label, const ArrayRef<llvm::HexNumber> List)
  • public void printList(llvm::StringRef Label, const ArrayRef<llvm::APSInt> List)
  • public void printList(llvm::StringRef Label, const ArrayRef<int8_t> List)
  • public void printList(llvm::StringRef Label, const ArrayRef<int16_t> List)
  • public void printList(llvm::StringRef Label, const ArrayRef<int64_t> List)
  • public void printList(llvm::StringRef Label, const ArrayRef<uint8_t> List)
  • public void printList(llvm::StringRef Label, const ArrayRef<int32_t> List)
  • public void printList(llvm::StringRef Label, const ArrayRef<bool> List)
  • public void printList(llvm::StringRef Label, const ArrayRef<uint16_t> List)
  • public void printList(llvm::StringRef Label, const ArrayRef<uint32_t> List)
  • public void printList(llvm::StringRef Label, const ArrayRef<uint64_t> List)
  • public void printList(llvm::StringRef Label, const ArrayRef<std::string> List)
  • private template <typename T>void printListImpl(llvm::StringRef Label, const T & List)
  • public void printNumber(llvm::StringRef Label, const llvm::APSInt & Value)
  • public void printNumber(llvm::StringRef Label, int8_t Value)
  • public void printNumber(llvm::StringRef Label, int16_t Value)
  • public void printNumber(llvm::StringRef Label, int32_t Value)
  • public void printNumber(llvm::StringRef Label, int64_t Value)
  • public void printNumber(llvm::StringRef Label, uint8_t Value)
  • public void printNumber(llvm::StringRef Label, uint16_t Value)
  • public void printNumber(llvm::StringRef Label, uint32_t Value)
  • public void printNumber(llvm::StringRef Label, uint64_t Value)
  • private void printNumberImpl(llvm::StringRef Label, llvm::StringRef Str, llvm::StringRef Value)
  • public void printString(llvm::StringRef Label, llvm::StringRef Value)
  • public void printString(llvm::StringRef Value)
  • private void printSymbolOffsetImpl(llvm::StringRef Label, llvm::StringRef Symbol, llvm::HexNumber Value)
  • private void scopedBegin(llvm::JSONScopedPrinter::ScopeContext ScopeCtx)
  • private void scopedBegin(llvm::StringRef Label, llvm::JSONScopedPrinter::Scope Ctx)
  • private void scopedEnd()

Inherited from ScopedPrinter:

Methods

JSONScopedPrinter(
    llvm::raw_ostream& OS,
    bool PrettyPrint = false,
    std::unique_ptr<DelimitedScope>&& OuterScope =
        std::unique_ptr<
            llvm::DelimitedScope,
            std::default_delete<
                llvm::DelimitedScope>>{})

Declared at: llvm/include/llvm/Support/ScopedPrinter.h:539

Parameters

llvm::raw_ostream& OS
bool PrettyPrint = false
std::unique_ptr<DelimitedScope>&& OuterScope = std::unique_ptr<llvm::DelimitedScope, std::default_delete<llvm::DelimitedScope>>{}

void arrayBegin()

Declared at: llvm/include/llvm/Support/ScopedPrinter.h:653

void arrayBegin(llvm::StringRef Label)

Declared at: llvm/include/llvm/Support/ScopedPrinter.h:657

Parameters

llvm::StringRef Label

void arrayEnd()

Declared at: llvm/include/llvm/Support/ScopedPrinter.h:661

static bool classof(const llvm::ScopedPrinter* SP)

Declared at: llvm/include/llvm/Support/ScopedPrinter.h:543

Parameters

const llvm::ScopedPrinter* SP

uint64_t hexNumberToInt(llvm::HexNumber Hex)

Declared at: llvm/include/llvm/Support/ScopedPrinter.h:665

Parameters

llvm::HexNumber Hex

void objectBegin(llvm::StringRef Label)

Declared at: llvm/include/llvm/Support/ScopedPrinter.h:647

Parameters

llvm::StringRef Label

void objectBegin()

Declared at: llvm/include/llvm/Support/ScopedPrinter.h:643

void objectEnd()

Declared at: llvm/include/llvm/Support/ScopedPrinter.h:651

void printAPSInt(const llvm::APSInt& Value)

Declared at: llvm/include/llvm/Support/ScopedPrinter.h:667

Parameters

const llvm::APSInt& Value

void printBinaryImpl(llvm::StringRef Label,
                     llvm::StringRef Str,
                     ArrayRef<uint8_t> Value,
                     bool Block,
                     uint32_t StartOffset = 0)

Declared at: llvm/include/llvm/Support/ScopedPrinter.h:745

Parameters

llvm::StringRef Label
llvm::StringRef Str
ArrayRef<uint8_t> Value
bool Block
uint32_t StartOffset = 0

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

Declared at: llvm/include/llvm/Support/ScopedPrinter.h:585

Parameters

llvm::StringRef Label
bool Value

void printFlagsImpl(
    llvm::StringRef Label,
    llvm::HexNumber Value,
    ArrayRef<llvm::HexNumber> Flags)

Declared at: llvm/include/llvm/Support/ScopedPrinter.h:687

Parameters

llvm::StringRef Label
llvm::HexNumber Value
ArrayRef<llvm::HexNumber> Flags

void printFlagsImpl(
    llvm::StringRef Label,
    llvm::HexNumber Value,
    ArrayRef<llvm::FlagEntry> Flags)

Declared at: llvm/include/llvm/Support/ScopedPrinter.h:672

Parameters

llvm::StringRef Label
llvm::HexNumber Value
ArrayRef<llvm::FlagEntry> Flags

void printHexImpl(llvm::StringRef Label,
                  llvm::HexNumber Value)

Declared at: llvm/include/llvm/Support/ScopedPrinter.h:715

Parameters

llvm::StringRef Label
llvm::HexNumber Value

void printHexImpl(llvm::StringRef Label,
                  llvm::StringRef Str,
                  llvm::HexNumber Value)

Declared at: llvm/include/llvm/Support/ScopedPrinter.h:719

Parameters

llvm::StringRef Label
llvm::StringRef Str
llvm::HexNumber Value

void printHexListImpl(
    llvm::StringRef Label,
    const ArrayRef<llvm::HexNumber> List)

Declared at: llvm/include/llvm/Support/ScopedPrinter.h:706

Parameters

llvm::StringRef Label
const ArrayRef<llvm::HexNumber> List

void printList(llvm::StringRef Label,
               const ArrayRef<llvm::APSInt> List)

Declared at: llvm/include/llvm/Support/ScopedPrinter.h:629

Parameters

llvm::StringRef Label
const ArrayRef<llvm::APSInt> List

void printList(llvm::StringRef Label,
               const ArrayRef<int8_t> List)

Declared at: llvm/include/llvm/Support/ScopedPrinter.h:625

Parameters

llvm::StringRef Label
const ArrayRef<int8_t> List

void printList(llvm::StringRef Label,
               const ArrayRef<int16_t> List)

Declared at: llvm/include/llvm/Support/ScopedPrinter.h:621

Parameters

llvm::StringRef Label
const ArrayRef<int16_t> List

void printList(llvm::StringRef Label,
               const ArrayRef<int64_t> List)

Declared at: llvm/include/llvm/Support/ScopedPrinter.h:613

Parameters

llvm::StringRef Label
const ArrayRef<int64_t> List

void printList(llvm::StringRef Label,
               const ArrayRef<uint8_t> List)

Declared at: llvm/include/llvm/Support/ScopedPrinter.h:609

Parameters

llvm::StringRef Label
const ArrayRef<uint8_t> List

void printList(llvm::StringRef Label,
               const ArrayRef<int32_t> List)

Declared at: llvm/include/llvm/Support/ScopedPrinter.h:617

Parameters

llvm::StringRef Label
const ArrayRef<int32_t> List

void printList(llvm::StringRef Label,
               const ArrayRef<bool> List)

Declared at: llvm/include/llvm/Support/ScopedPrinter.h:589

Parameters

llvm::StringRef Label
const ArrayRef<bool> List

void printList(llvm::StringRef Label,
               const ArrayRef<uint16_t> List)

Declared at: llvm/include/llvm/Support/ScopedPrinter.h:605

Parameters

llvm::StringRef Label
const ArrayRef<uint16_t> List

void printList(llvm::StringRef Label,
               const ArrayRef<uint32_t> List)

Declared at: llvm/include/llvm/Support/ScopedPrinter.h:601

Parameters

llvm::StringRef Label
const ArrayRef<uint32_t> List

void printList(llvm::StringRef Label,
               const ArrayRef<uint64_t> List)

Declared at: llvm/include/llvm/Support/ScopedPrinter.h:597

Parameters

llvm::StringRef Label
const ArrayRef<uint64_t> List

void printList(llvm::StringRef Label,
               const ArrayRef<std::string> List)

Declared at: llvm/include/llvm/Support/ScopedPrinter.h:593

Parameters

llvm::StringRef Label
const ArrayRef<std::string> List

template <typename T>
void printListImpl(llvm::StringRef Label,
                   const T& List)

Declared at: llvm/include/llvm/Support/ScopedPrinter.h:699

Templates

T

Parameters

llvm::StringRef Label
const T& List

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

Declared at: llvm/include/llvm/Support/ScopedPrinter.h:579

Parameters

llvm::StringRef Label
const llvm::APSInt& Value

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

Declared at: llvm/include/llvm/Support/ScopedPrinter.h:575

Parameters

llvm::StringRef Label
int8_t Value

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

Declared at: llvm/include/llvm/Support/ScopedPrinter.h:571

Parameters

llvm::StringRef Label
int16_t Value

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

Declared at: llvm/include/llvm/Support/ScopedPrinter.h:567

Parameters

llvm::StringRef Label
int32_t Value

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

Declared at: llvm/include/llvm/Support/ScopedPrinter.h:563

Parameters

llvm::StringRef Label
int64_t Value

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

Declared at: llvm/include/llvm/Support/ScopedPrinter.h:559

Parameters

llvm::StringRef Label
uint8_t Value

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

Declared at: llvm/include/llvm/Support/ScopedPrinter.h:555

Parameters

llvm::StringRef Label
uint16_t Value

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

Declared at: llvm/include/llvm/Support/ScopedPrinter.h:551

Parameters

llvm::StringRef Label
uint32_t Value

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

Declared at: llvm/include/llvm/Support/ScopedPrinter.h:547

Parameters

llvm::StringRef Label
uint64_t Value

void printNumberImpl(llvm::StringRef Label,
                     llvm::StringRef Str,
                     llvm::StringRef Value)

Declared at: llvm/include/llvm/Support/ScopedPrinter.h:734

Parameters

llvm::StringRef Label
llvm::StringRef Str
llvm::StringRef Value

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

Declared at: llvm/include/llvm/Support/ScopedPrinter.h:639

Parameters

llvm::StringRef Label
llvm::StringRef Value

void printString(llvm::StringRef Value)

Declared at: llvm/include/llvm/Support/ScopedPrinter.h:637

Parameters

llvm::StringRef Value

void printSymbolOffsetImpl(llvm::StringRef Label,
                           llvm::StringRef Symbol,
                           llvm::HexNumber Value)

Declared at: llvm/include/llvm/Support/ScopedPrinter.h:726

Parameters

llvm::StringRef Label
llvm::StringRef Symbol
llvm::HexNumber Value

void scopedBegin(
    llvm::JSONScopedPrinter::ScopeContext
        ScopeCtx)

Declared at: llvm/include/llvm/Support/ScopedPrinter.h:758

Parameters

llvm::JSONScopedPrinter::ScopeContext ScopeCtx

void scopedBegin(
    llvm::StringRef Label,
    llvm::JSONScopedPrinter::Scope Ctx)

Declared at: llvm/include/llvm/Support/ScopedPrinter.h:766

Parameters

llvm::StringRef Label
llvm::JSONScopedPrinter::Scope Ctx

void scopedEnd()

Declared at: llvm/include/llvm/Support/ScopedPrinter.h:776