[Mlir-commits] [mlir] [mlir] Add metadata to Diagnostic. (PR #99398)

Mehdi Amini llvmlistbot at llvm.org
Mon Jul 22 10:00:20 PDT 2024


================
@@ -0,0 +1,19 @@
+// RUN: mlir-opt %s -pass-pipeline="builtin.module(func.func(test-diagnostic-metadata))" -o - 2>&1 | FileCheck %s
+// This test verifies that diagnostic handler can filter the diagnostic whether to emit the errors.
+
+// CHECK-LABEL: Test 'test'
+// CHECK-NEXT: 8:3: error: test diagnostic metadata
+// CHECK-NOT: 13:3: error: test diagnostic metadata
----------------
joker-eph wrote:

Instead of using FileCheck, can't we use the `--verify-diagnostic` mode of mlir-opt?

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


More information about the Mlir-commits mailing list