Home
last modified time | relevance | path

Searched refs:WithColor (Results 1 – 25 of 125) sorted by relevance

12345

/external/llvm-project/llvm/lib/Support/
DWithColor.cpp21 WithColor::WithColor(raw_ostream &OS, HighlightColor Color, ColorMode Mode) in WithColor() function in WithColor
60 raw_ostream &WithColor::error() { return error(errs()); } in error()
62 raw_ostream &WithColor::warning() { return warning(errs()); } in warning()
64 raw_ostream &WithColor::note() { return note(errs()); } in note()
66 raw_ostream &WithColor::remark() { return remark(errs()); } in remark()
68 raw_ostream &WithColor::error(raw_ostream &OS, StringRef Prefix, in error()
72 return WithColor(OS, HighlightColor::Error, in error()
78 raw_ostream &WithColor::warning(raw_ostream &OS, StringRef Prefix, in warning()
82 return WithColor(OS, HighlightColor::Warning, in warning()
88 raw_ostream &WithColor::note(raw_ostream &OS, StringRef Prefix, in note()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
DWithColor.cpp21 WithColor::WithColor(raw_ostream &OS, HighlightColor Color, bool DisableColors) in WithColor() function in WithColor
60 raw_ostream &WithColor::error() { return error(errs()); } in error()
62 raw_ostream &WithColor::warning() { return warning(errs()); } in warning()
64 raw_ostream &WithColor::note() { return note(errs()); } in note()
66 raw_ostream &WithColor::remark() { return remark(errs()); } in remark()
68 raw_ostream &WithColor::error(raw_ostream &OS, StringRef Prefix, in error()
72 return WithColor(OS, HighlightColor::Error, DisableColors).get() in error()
76 raw_ostream &WithColor::warning(raw_ostream &OS, StringRef Prefix, in warning()
80 return WithColor(OS, HighlightColor::Warning, DisableColors).get() in warning()
84 raw_ostream &WithColor::note(raw_ostream &OS, StringRef Prefix, in note()
[all …]
/external/llvm-project/llvm/tools/llvm-pdbutil/
DPrettyFunctionDumper.cpp44 WithColor(Printer, PDB_ColorItem::Type).get() << ClassParent->getName(); in dumpClassParentWithScopeOperator()
74 WithColor(Printer, PDB_ColorItem::Keyword).get() << CC << " "; in start()
77 WithColor(Printer, PDB_ColorItem::Identifier).get() in start()
84 WithColor(Printer, PDB_ColorItem::Keyword).get() << CC << " "; in start()
86 WithColor(Printer, PDB_ColorItem::Identifier).get() in start()
95 WithColor(Printer, PDB_ColorItem::Identifier).get() << Name; in start()
111 WithColor(Printer, PDB_ColorItem::Keyword).get() << " const"; in start()
113 WithColor(Printer, PDB_ColorItem::Keyword).get() << " volatile"; in start()
121 WithColor(Printer, PDB_ColorItem::Address).get() << format_hex(FuncStart, 10); in start()
124 WithColor(Printer, PDB_ColorItem::Offset).get() in start()
[all …]
DPrettyVariableDumper.cpp51 WithColor(Printer, PDB_ColorItem::Address).get() in start()
54 WithColor(Printer, PDB_ColorItem::Keyword).get() << "static "; in start()
64 WithColor(Printer, PDB_ColorItem::LiteralValue).get() << Var.getValue(); in start()
69 WithColor(Printer, PDB_ColorItem::Offset).get() in start()
77 WithColor(Printer, PDB_ColorItem::Offset).get() in start()
82 WithColor(Printer, PDB_ColorItem::LiteralValue).get() << Var.getLength(); in start()
88 WithColor(Printer, PDB_ColorItem::Identifier).get() << Var.getName(); in start()
97 WithColor(Printer, PDB_ColorItem::Offset).get() in startVbptr()
107 WithColor(Printer, PDB_ColorItem::Offset).get() in start()
135 WithColor(Printer, PDB_ColorItem::Type).get() << Symbol.getName(); in dump()
[all …]
DPrettyCompilandDumper.cpp54 WithColor(Printer, PDB_ColorItem::Path).get() << FullName; in start()
62 WithColor(Printer, PDB_ColorItem::Path).get() << File->getFileName(); in start()
66 WithColor(Printer, PDB_ColorItem::Comment).get() in start()
84 WithColor(Printer, StatementColor).get() << LineStart; in start()
86 WithColor(Printer, StatementColor).get() << " - " << LineEnd; in start()
92 WithColor(Printer, StatementColor).get() << ColumnStart; in start()
94 WithColor(Printer, StatementColor).get() << " - " << ColumnEnd; in start()
101 WithColor(Printer, PDB_ColorItem::Address).get() in start()
107 WithColor(Printer, PDB_ColorItem::Address).get() in start()
139 WithColor(Printer, PDB_ColorItem::Address).get() in dump()
[all …]
DPrettyEnumDumper.cpp27 WithColor(Printer, PDB_ColorItem::Keyword).get() << "const "; in start()
29 WithColor(Printer, PDB_ColorItem::Keyword).get() << "volatile "; in start()
31 WithColor(Printer, PDB_ColorItem::Keyword).get() << "unaligned "; in start()
32 WithColor(Printer, PDB_ColorItem::Keyword).get() << "enum "; in start()
33 WithColor(Printer, PDB_ColorItem::Type).get() << Symbol.getName(); in start()
37 WithColor(Printer, PDB_ColorItem::Keyword).get() << "enum "; in start()
38 WithColor(Printer, PDB_ColorItem::Type).get() << Symbol.getName(); in start()
57 WithColor(Printer, PDB_ColorItem::Identifier).get() in start()
60 WithColor(Printer, PDB_ColorItem::LiteralValue).get() in start()
DPrettyClassDefinitionDumper.cpp54 WithColor(Printer, PDB_ColorItem::Keyword).get() << "const "; in prettyPrintClassIntro()
56 WithColor(Printer, PDB_ColorItem::Keyword).get() << "volatile "; in prettyPrintClassIntro()
58 WithColor(Printer, PDB_ColorItem::Keyword).get() << "unaligned "; in prettyPrintClassIntro()
60 WithColor(Printer, PDB_ColorItem::Keyword).get() << Class.getUdtKind() << " "; in prettyPrintClassIntro()
61 WithColor(Printer, PDB_ColorItem::Type).get() << Class.getName(); in prettyPrintClassIntro()
62 WithColor(Printer, PDB_ColorItem::Comment).get() << " [sizeof = " << Size in prettyPrintClassIntro()
75 WithColor(Printer, PDB_ColorItem::Keyword).get() << Base.getAccess(); in prettyPrintClassIntro()
77 WithColor(Printer, PDB_ColorItem::Keyword).get() << " virtual"; in prettyPrintClassIntro()
79 WithColor(Printer, PDB_ColorItem::Type).get() << " " << Base.getName(); in prettyPrintClassIntro()
101 WithColor(Printer, PDB_ColorItem::Padding).get() in prettyPrintClassOutro()
[all …]
DPrettyTypedefDumper.cpp30 WithColor(Printer, PDB_ColorItem::Keyword).get() << "typedef "; in start()
34 WithColor(Printer, PDB_ColorItem::Identifier).get() << " " in start()
49 WithColor(Printer, PDB_ColorItem::Keyword).get() << "enum "; in dump()
50 WithColor(Printer, PDB_ColorItem::Type).get() << " " << Symbol.getName(); in dump()
55 WithColor(Printer, PDB_ColorItem::Keyword).get() << "const "; in dump()
57 WithColor(Printer, PDB_ColorItem::Keyword).get() << "volatile "; in dump()
71 WithColor(Printer, PDB_ColorItem::Keyword).get() << " __restrict"; in dump()
80 WithColor(Printer, PDB_ColorItem::Keyword).get() << "class "; in dump()
81 WithColor(Printer, PDB_ColorItem::Type).get() << Symbol.getName(); in dump()
DPrettyTypeDumper.cpp165 WithColor(Printer, PDB_ColorItem::Identifier).get() << Label; in dumpSymbolCategory()
183 WithColor(Printer, PDB_ColorItem::Keyword).get() << "const "; in printClassDecl()
185 WithColor(Printer, PDB_ColorItem::Keyword).get() << "volatile "; in printClassDecl()
187 WithColor(Printer, PDB_ColorItem::Keyword).get() << "unaligned "; in printClassDecl()
189 WithColor(Printer, PDB_ColorItem::Keyword).get() << Class.getUdtKind() << " "; in printClassDecl()
190 WithColor(Printer, PDB_ColorItem::Type).get() << Class.getName(); in printClassDecl()
219 WithColor(Printer, PDB_ColorItem::Identifier).get() << "Classes"; in start()
303 WithColor(Printer, PDB_ColorItem::LiteralValue).get() << Symbol.getCount(); in dump()
352 WithColor(Printer, PDB_ColorItem::Keyword).get() in dumpClassLayout()
354 WithColor(Printer, PDB_ColorItem::Type).get() << Class.getName(); in dumpClassLayout()
/external/llvm/tools/llvm-pdbdump/
DFunctionDumper.cpp45 WithColor(Printer, PDB_ColorItem::Type).get() << ClassParent->getName(); in dumpClassParentWithScopeOperator()
72 WithColor(Printer, PDB_ColorItem::Keyword).get() << CC << " "; in start()
75 WithColor(Printer, PDB_ColorItem::Identifier).get() in start()
82 WithColor(Printer, PDB_ColorItem::Keyword).get() << CC << " "; in start()
84 WithColor(Printer, PDB_ColorItem::Identifier).get() in start()
93 WithColor(Printer, PDB_ColorItem::Identifier).get() << Name; in start()
109 WithColor(Printer, PDB_ColorItem::Keyword).get() << " const"; in start()
111 WithColor(Printer, PDB_ColorItem::Keyword).get() << " volatile"; in start()
119 WithColor(Printer, PDB_ColorItem::Address).get() << format_hex(FuncStart, 10); in start()
122 WithColor(Printer, PDB_ColorItem::Offset).get() << "+" << Prologue; in start()
[all …]
DVariableDumper.cpp47 WithColor(Printer, PDB_ColorItem::Address).get() in start()
50 WithColor(Printer, PDB_ColorItem::Keyword).get() << "static "; in start()
58 WithColor(Printer, PDB_ColorItem::Keyword).get() << "const "; in start()
61 WithColor(Printer, PDB_ColorItem::LiteralValue).get() << Var.getValue(); in start()
66 WithColor(Printer, PDB_ColorItem::Offset).get() in start()
73 WithColor(Printer, PDB_ColorItem::Offset).get() in start()
77 WithColor(Printer, PDB_ColorItem::LiteralValue).get() << Var.getLength(); in start()
83 WithColor(Printer, PDB_ColorItem::Identifier).get() << Var.getName(); in start()
94 WithColor(Printer, PDB_ColorItem::Type).get() << Symbol.getName(); in dump()
112 WithColor(Printer, PDB_ColorItem::Keyword).get() << "const "; in dump()
[all …]
DCompilandDumper.cpp54 WithColor(Printer, PDB_ColorItem::Path).get() << FullName; in start()
62 WithColor(Printer, PDB_ColorItem::Path).get() << File->getFileName(); in start()
75 WithColor(Printer, StatementColor).get() << LineStart; in start()
77 WithColor(Printer, StatementColor).get() << " - " << LineEnd; in start()
83 WithColor(Printer, PDB_ColorItem::Address).get() in start()
89 WithColor(Printer, PDB_ColorItem::Address).get() in start()
117 WithColor(Printer, PDB_ColorItem::Address).get() in dump()
122 WithColor(Printer, PDB_ColorItem::LiteralValue).get() in dump()
130 WithColor(Printer, PDB_ColorItem::Identifier).get() << Symbol.getName(); in dump()
150 WithColor(Printer, PDB_ColorItem::Address).get() in dump()
[all …]
DTypedefDumper.cpp31 WithColor(Printer, PDB_ColorItem::Keyword).get() << "typedef "; in start()
35 WithColor(Printer, PDB_ColorItem::Identifier).get() << " " in start()
47 WithColor(Printer, PDB_ColorItem::Keyword).get() << "enum "; in dump()
48 WithColor(Printer, PDB_ColorItem::Type).get() << " " << Symbol.getName(); in dump()
53 WithColor(Printer, PDB_ColorItem::Keyword).get() << "const "; in dump()
55 WithColor(Printer, PDB_ColorItem::Keyword).get() << "volatile "; in dump()
78 WithColor(Printer, PDB_ColorItem::Keyword).get() << "class "; in dump()
79 WithColor(Printer, PDB_ColorItem::Type).get() << Symbol.getName(); in dump()
DClassDefinitionDumper.cpp38 WithColor(Printer, PDB_ColorItem::Keyword).get() << Class.getUdtKind() << " "; in start()
39 WithColor(Printer, PDB_ColorItem::Type).get() << Class.getName(); in start()
49 WithColor(Printer, PDB_ColorItem::Keyword).get() << Base->getAccess(); in start()
51 WithColor(Printer, PDB_ColorItem::Keyword).get() << " virtual"; in start()
52 WithColor(Printer, PDB_ColorItem::Type).get() << " " << Base->getName(); in start()
124 WithColor(Printer, PDB_ColorItem::Keyword).get() << "private"; in dumpAccessGroup()
128 WithColor(Printer, PDB_ColorItem::Keyword).get() << "protected"; in dumpAccessGroup()
132 WithColor(Printer, PDB_ColorItem::Keyword).get() << "public"; in dumpAccessGroup()
DTypeDumper.cpp34 WithColor(Printer, PDB_ColorItem::Identifier).get() << "Enums"; in start()
43 WithColor(Printer, PDB_ColorItem::Identifier).get() << "Typedefs"; in start()
52 WithColor(Printer, PDB_ColorItem::Identifier).get() << "Classes"; in start()
92 WithColor(Printer, PDB_ColorItem::Keyword).get() << "class "; in dump()
93 WithColor(Printer, PDB_ColorItem::Identifier).get() << Symbol.getName(); in dump()
DEnumDumper.cpp26 WithColor(Printer, PDB_ColorItem::Keyword).get() << "enum "; in start()
27 WithColor(Printer, PDB_ColorItem::Type).get() << Symbol.getName(); in start()
43 WithColor(Printer, PDB_ColorItem::Identifier).get() in start()
46 WithColor(Printer, PDB_ColorItem::LiteralValue).get() in start()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
DWithColor.h37 class WithColor {
47 WithColor(raw_ostream &OS, HighlightColor S, bool DisableColors = false);
56 WithColor(raw_ostream &OS,
62 ~WithColor();
66 template <typename T> WithColor &operator<<(T &O) {
70 template <typename T> WithColor &operator<<(const T &O) {
105 WithColor &changeColor(raw_ostream::Colors Color, bool Bold = false,
110 WithColor &resetColor();
/external/llvm-project/llvm/include/llvm/Support/
DWithColor.h53 class WithColor {
62 WithColor(raw_ostream &OS, HighlightColor S,
71 WithColor(raw_ostream &OS,
78 ~WithColor();
82 template <typename T> WithColor &operator<<(T &O) {
86 template <typename T> WithColor &operator<<(const T &O) {
121 WithColor &changeColor(raw_ostream::Colors Color, bool Bold = false,
126 WithColor &resetColor();
/external/llvm-project/mlir/tools/mlir-rocm-runner/
Dmlir-rocm-runner.cpp99 WithColor::error(errs(), name) << error; in assembleIsa()
140 WithColor::error(errs(), name) << "assembler initialization error.\n"; in assembleIsa()
159 WithColor::error(errs(), name) in createHsaco()
174 WithColor::error(errs(), name) in createHsaco()
186 WithColor::error(errs(), name) << "lld invocation error.\n"; in createHsaco()
193 WithColor::error(errs(), name) in createHsaco()
224 WithColor::error(errs(), name) << "producing HSA code object error.\n"; in compileISAToHsaco()
237 WithColor::warning(errs(), kRunnerProgram) in configTargetChip()
248 WithColor::warning(errs(), kRunnerProgram) in configTargetChip()
263 WithColor::warning(errs(), kRunnerProgram) in configTargetChip()
[all …]
/external/llvm-project/llvm/tools/llc/
Dllc.cpp254 WithColor::error() << EC.message() << '\n'; in GetOutputStream()
290 WithColor::note() << "!srcloc = " << LocCookie << "\n"; in InlineAsmDiagHandler()
348 WithColor::error(errs(), argv[0]) << toString(std::move(E)) << '\n'; in main()
355 WithColor::error(errs(), argv[0]) in main()
379 WithColor::error(errs(), argv0) in addPass()
388 WithColor::error(errs(), argv0) in addPass()
421 WithColor::error(errs(), argv[0]) << "invalid optimization level.\n"; in compileModule()
463 WithColor::error(errs(), argv[0]) << Error; in compileModule()
470 WithColor::error(errs(), argv[0]) in compileModule()
493 Err.print(argv[0], WithColor::error(errs(), argv[0])); in compileModule()
[all …]
/external/llvm/lib/DebugInfo/DWARF/
DSyntaxHighlighting.cpp21 WithColor::WithColor(llvm::raw_ostream &OS, enum HighlightColor Type) : OS(OS) { in WithColor() function in WithColor
35 WithColor::~WithColor() { in ~WithColor()
/external/llvm-project/llvm/utils/FileCheck/
DFileCheck.cpp250 WithColor(OS, raw_ostream::SAVEDCOLOR, true) << "L:"; in DumpInputAnnotationHelp()
255 WithColor(OS, raw_ostream::SAVEDCOLOR, true) << "T:L"; in DumpInputAnnotationHelp()
263 WithColor(OS, raw_ostream::SAVEDCOLOR, true) << "T:L'N"; in DumpInputAnnotationHelp()
268 WithColor(OS, raw_ostream::SAVEDCOLOR, true) << "^~~"; in DumpInputAnnotationHelp()
271 WithColor(OS, raw_ostream::SAVEDCOLOR, true) << "!~~"; in DumpInputAnnotationHelp()
278 WithColor(OS, raw_ostream::SAVEDCOLOR, true) << "X~~"; in DumpInputAnnotationHelp()
284 WithColor(OS, raw_ostream::SAVEDCOLOR, true) << "?"; in DumpInputAnnotationHelp()
289 WithColor(OS, raw_ostream::SAVEDCOLOR, true) << "..."; in DumpInputAnnotationHelp()
295 WithColor(OS, raw_ostream::GREEN, true) << "success"; in DumpInputAnnotationHelp()
297 WithColor(OS, raw_ostream::RED, true) << "error"; in DumpInputAnnotationHelp()
[all …]
/external/llvm-project/llvm/tools/dsymutil/
DLinkUtils.h92 WithColor::warning() << Warning + "\n";
94 WithColor::note() << Twine("while processing ") + Context + "\n";
98 WithColor::error() << Error + "\n";
100 WithColor::note() << Twine("while processing ") + Context + "\n";
/external/llvm-project/llvm/tools/llvm-ml/
Dllvm-ml.cpp101 WithColor::error() << EC.message() << '\n'; in GetOutputStream()
138 WithColor::error(errs(), ProgName) in AssembleInput()
155 WithColor::error(errs(), ProgName) in AssembleInput()
187 WithColor::warning(errs(), ProgName) in main()
201 WithColor::error(errs(), ProgName) << OS.str() << '\n'; in main()
207 WithColor::warning(errs(), ProgName) in main()
215 WithColor::warning(errs(), ProgName) in main()
239 WithColor::error(errs(), ProgName) << Error; in main()
246 WithColor::warning() in main()
254 WithColor::error(errs(), ProgName) in main()
[all …]
/external/llvm-project/llvm/tools/llvm-link/
Dllvm-link.cpp162 WithColor::error() in loadArFile()
175 WithColor::error() << " loading memory for member '" << ChildName in loadArFile()
186 WithColor::error() << " member of archive is not a bitcode file: '" in loadArFile()
195 WithColor::error() << " parsing member '" << ChildName in loadArFile()
258 WithColor::error(); in handleDiagnostics()
263 WithColor::warning(); in handleDiagnostics()
311 WithColor::error() << "input module is broken!\n"; in importFunctions()
364 WithColor::error() << " loading file '" << File << "'\n"; in linkFiles()
373 WithColor::error() << "input module is broken!\n"; in linkFiles()
465 WithColor::error() << EC.message() << '\n'; in main()
[all …]

12345