LLVM: lib/Support/ScopedPrinter.cpp Source File (original) (raw)

1

2

3

4

5

6

7

8

11

12using namespace llvm;

13

18

22 if (Data.size() > 16)

24

27 if (!Str.empty())

28 OS << ": " << Str;

29 OS << " (\n";

30 if (Data.empty())

32 (IndentLevel + 1) * 2, true)

33 << "\n";

35 } else {

37 if (!Str.empty())

38 OS << " " << Str;

40 << ")\n";

41 }

42}

43

46 std::unique_ptr &&OuterScope)

48 JOS(OS, PrettyPrint ? 2 : 0),

49 OuterScope(std::move(OuterScope)) {

50 if (this->OuterScope)

51 this->OuterScope->setPrinter(*this);

52}

ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory),...

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

Definition ScopedPrinter.cpp:44

ScopedPrinter(raw_ostream &OS, ScopedPrinterKind Kind=ScopedPrinterKind::Base)

virtual raw_ostream & startLine()

StringRef - Represent a constant reference to a string, i.e.

LLVM Value Representation.

LLVM_ABI Value(Type *Ty, unsigned scid)

This class implements an extremely fast bulk output stream that can only output to a stream.

This is an optimization pass for GlobalISel generic memory operations.

std::string utohexstr(uint64_t X, bool LowerCase=false, unsigned Width=0)

FunctionAddr VTableAddr uintptr_t uintptr_t Data

FormattedBytes format_bytes_with_ascii(ArrayRef< uint8_t > Bytes, std::optional< uint64_t > FirstByteOffset=std::nullopt, uint32_t NumPerLine=16, uint8_t ByteGroupSize=4, uint32_t IndentLevel=0, bool Upper=false)

raw_ostream & operator<<(raw_ostream &OS, const APFixedPoint &FX)

OutputIt move(R &&Range, OutputIt Out)

Provide wrappers to std::move which take ranges instead of having to pass begin/end explicitly.

FormattedBytes format_bytes(ArrayRef< uint8_t > Bytes, std::optional< uint64_t > FirstByteOffset=std::nullopt, uint32_t NumPerLine=16, uint8_t ByteGroupSize=4, uint32_t IndentLevel=0, bool Upper=false)

Implement std::hash so that hash_code can be used in STL containers.