Lines Matching +full:- +full:- +full:quiet
1 //===- PrintPasses.cpp ----------------------------------------------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
21 PrintBefore("print-before",
26 PrintAfter("print-after", llvm::cl::desc("Print IR after specified passes"),
29 static cl::opt<bool> PrintBeforeAll("print-before-all",
32 static cl::opt<bool> PrintAfterAll("print-after-all",
36 // Print out the IR after passes, similar to -print-after-all except that it
40 // this option. -filter-passes will limit the output to the named passes that
43 // reported) or the changed IR will be reported. Also, the -filter-print-funcs
44 // and -print-module-scope options will do similar filtering based on function
45 // name, reporting changed IRs as functions(or modules if -print-module-scope is
49 // with the rest being reported as filtered out. The -print-before-changed
51 // optional value of quiet will only report when the IR changes, suppressing all
52 // other messages, including the initial IR. The values "diff" and "diff-quiet"
54 // quiet mode, respectively. The lines that are removed and added are prefixed
55 // with '-' and '+', respectively. The -filter-print-funcs and -filter-passes
61 "print-changed", cl::desc("Print changed IRs"), cl::Hidden,
64 clEnumValN(ChangePrinter::Quiet, "quiet", "Run in quiet mode"),
66 "Display patch-like changes"),
67 clEnumValN(ChangePrinter::DiffQuiet, "diff-quiet",
68 "Display patch-like changes in quiet mode"),
70 "Display patch-like changes with color"),
71 clEnumValN(ChangePrinter::ColourDiffQuiet, "cdiff-quiet",
72 "Display patch-like changes in quiet mode with color"),
73 clEnumValN(ChangePrinter::DotCfgVerbose, "dot-cfg",
75 clEnumValN(ChangePrinter::DotCfgQuiet, "dot-cfg-quiet",
76 "Create a website with graphical changes in quiet mode"),
80 // An option for specifying the diff used by print-changed=[diff | diff-quiet]
82 DiffBinary("print-changed-diff-path", cl::Hidden, cl::init("diff"),
86 PrintModuleScope("print-module-scope",
87 cl::desc("When printing IR for print-[before|after]{-all} "
91 // See the description for -print-changed for an explanation of the use
94 "filter-passes", cl::value_desc("pass names"),
96 "match the specified value. No-op without -print-changed"),
100 PrintFuncsList("filter-print-funcs", cl::value_desc("function names"),
102 "match this for all print-[before|after][-all] "
178 if (FD[I] == -1) {
190 if (FD[I] == -1) {
212 static SmallVector<int> FD{-1, -1, -1};
223 ("--old-line-format=" + OldLineFormat).toVector(OLF);
224 ("--new-line-format=" + NewLineFormat).toVector(NLF);
225 ("--unchanged-line-format=" + UnchangedLineFormat).toVector(ULF);
227 StringRef Args[] = {DiffBinary, "-w", "-d", OLF,
237 Diff = (*B)->getBuffer().str();