[Mlir-commits] [mlir] [MLIR] Add remark flags to mlir-opt (PR #156825)

Jacques Pienaar llvmlistbot at llvm.org
Sat Sep 13 21:47:53 PDT 2025


================
@@ -204,6 +207,58 @@ struct MlirOptMainConfigCLOptions : public MlirOptMainConfig {
             cl::location(generateReproducerFileFlag), cl::init(""),
             cl::value_desc("filename"));
 
+    static cl::OptionCategory remarkCategory(
+        "Remark Options",
+        "Filter remarks by regular expression (llvm::Regex syntax).");
+
+    static llvm::cl::opt<RemarkFormat, /*ExternalStorage=*/true> remarkFormat{
----------------
jpienaar wrote:

There is a using namespace llvm and mlir above, so no need to qualify these here (and also inconsistent with ones just below and above).

https://github.com/llvm/llvm-project/pull/156825


More information about the Mlir-commits mailing list