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

Guray Ozen llvmlistbot at llvm.org
Mon Sep 8 06:23:43 PDT 2025


================
@@ -0,0 +1,50 @@
+// RUN: mlir-opt %s --test-remark --remarks-passed="category" 2>&1 | FileCheck %s -check-prefix=CHECK-PASSED 
+// RUN: mlir-opt %s --test-remark --remarks-missed="category" 2>&1 | FileCheck %s -check-prefix=CHECK-MISSED
+// RUN: mlir-opt %s --test-remark --remarks-failed="category" 2>&1 | FileCheck %s -check-prefix=CHECK-FAILED
+// RUN: mlir-opt %s --test-remark --remarks-analyse="category" 2>&1 | FileCheck %s -check-prefix=CHECK-ANALYSIS
+// RUN: mlir-opt %s --test-remark --remarks="category" 2>&1 | FileCheck %s -check-prefix=CHECK-ALL
----------------
grypp wrote:

"category" is unanchored, so default is substring match. But I see your concern, and agree. I added string manipulation to make strings anchored. 

Previously: `category` matches with `a-category-1` and `category-1`
With this PR: `category` won't match with `a-category-1` and `category-1`
With this PR: `category.*` will match with `category-1` and not `a-category-1`


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


More information about the Mlir-commits mailing list