Skip to content

Commit c52555b

Browse files
committed
make filter
1 parent a117fe5 commit c52555b

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

mlir/lib/Tools/mlir-opt/MlirOptMain.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ struct MlirOptMainConfigCLOptions : public MlirOptMainConfig {
226226
llvm::cl::cat(remarkCategory)};
227227

228228
static cl::opt<std::string, /*ExternalStorage=*/true> remarksAll(
229-
"remarks",
229+
"remarks-filter",
230230
cl::desc("Show all remarks: passed, missed, failed, analysis"),
231231
cl::location(remarksAllFilterFlag), cl::init(""),
232232
cl::cat(remarkCategory));
@@ -240,22 +240,22 @@ struct MlirOptMainConfigCLOptions : public MlirOptMainConfig {
240240
cl::cat(remarkCategory));
241241

242242
static cl::opt<std::string, /*ExternalStorage=*/true> remarksPassed(
243-
"remarks-passed", cl::desc("Show passed remarks"),
243+
"remarks-passed-filter", cl::desc("Show passed remarks"),
244244
cl::location(remarksPassedFilterFlag), cl::init(""),
245245
cl::cat(remarkCategory));
246246

247247
static cl::opt<std::string, /*ExternalStorage=*/true> remarksFailed(
248-
"remarks-failed", cl::desc("Show failed remarks"),
248+
"remarks-failed-filter", cl::desc("Show failed remarks"),
249249
cl::location(remarksFailedFilterFlag), cl::init(""),
250250
cl::cat(remarkCategory));
251251

252252
static cl::opt<std::string, /*ExternalStorage=*/true> remarksMissed(
253-
"remarks-missed", cl::desc("Show missed remarks"),
253+
"remarks-missed-filter", cl::desc("Show missed remarks"),
254254
cl::location(remarksMissedFilterFlag), cl::init(""),
255255
cl::cat(remarkCategory));
256256

257257
static cl::opt<std::string, /*ExternalStorage=*/true> remarksAnalyse(
258-
"remarks-analyse", cl::desc("Show analysis remarks"),
258+
"remarks-analyse-filter", cl::desc("Show analysis remarks"),
259259
cl::location(remarksAnalyseFilterFlag), cl::init(""),
260260
cl::cat(remarkCategory));
261261

mlir/test/Pass/remarks.mlir

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
// RUN: mlir-opt %s --test-remark --remarks-passed="category-1-passed" 2>&1 | FileCheck %s -check-prefix=CHECK-PASSED
2-
// RUN: mlir-opt %s --test-remark --remarks-missed="a-category-1-missed" 2>&1 | FileCheck %s -check-prefix=CHECK-MISSED
3-
// RUN: mlir-opt %s --test-remark --remarks-failed="category-2-failed" 2>&1 | FileCheck %s -check-prefix=CHECK-FAILED
4-
// RUN: mlir-opt %s --test-remark --remarks-analyse="category-2-analysis" 2>&1 | FileCheck %s -check-prefix=CHECK-ANALYSIS
5-
// RUN: mlir-opt %s --test-remark --remarks="category.*" 2>&1 | FileCheck %s -check-prefix=CHECK-ALL
6-
// RUN: mlir-opt %s --test-remark --remarks="category-1.*" 2>&1 | FileCheck %s -check-prefix=CHECK-ALL1
1+
// RUN: mlir-opt %s --test-remark --remarks-passed-filter="category-1-passed" 2>&1 | FileCheck %s -check-prefix=CHECK-PASSED
2+
// RUN: mlir-opt %s --test-remark --remarks-missed-filter="a-category-1-missed" 2>&1 | FileCheck %s -check-prefix=CHECK-MISSED
3+
// RUN: mlir-opt %s --test-remark --remarks-failed-filter="category-2-failed" 2>&1 | FileCheck %s -check-prefix=CHECK-FAILED
4+
// RUN: mlir-opt %s --test-remark --remarks-analyse-filter="category-2-analysis" 2>&1 | FileCheck %s -check-prefix=CHECK-ANALYSIS
5+
// RUN: mlir-opt %s --test-remark --remarks-filter="category.*" 2>&1 | FileCheck %s -check-prefix=CHECK-ALL
6+
// RUN: mlir-opt %s --test-remark --remarks-filter="category-1.*" 2>&1 | FileCheck %s -check-prefix=CHECK-ALL1
77
module @foo {
88
"test.op"() : () -> ()
99

0 commit comments

Comments
 (0)