Lines Matching defs:pass
1 //===- PassDocGen.cpp - MLIR pass documentation generator -----------------===//
23 /// Emit the documentation for the given pass.
24 static void emitDoc(const Pass &pass, raw_ostream &os) {
25 os << llvm::formatv("### `-{0}`\n", pass.getArgument());
26 emitSummary(pass.getSummary(), os);
27 emitDescription(pass.getDescription(), os);
29 // Handle the options of the pass.
30 ArrayRef<PassOption> options = pass.getOptions();
44 // Handle the statistics of the pass.
45 ArrayRef<PassStatistic> stats = pass.getStatistics();
72 for (Pass *pass : sortedPasses)
73 emitDoc(*pass, os);
77 genRegister("gen-pass-doc", "Generate pass documentation",