[Mlir-commits] [mlir] [mlir][transforms] Add `signalPassFailure` in RemoveDeadValues (PR #112199)

Longsheng Mou llvmlistbot at llvm.org
Mon Oct 14 23:11:14 PDT 2024


CoTinker wrote:

> > Sorry, I'm still having trouble understanding how to check for `signalPassFailure` in mlir-opt. I know `expected-error` and `verify-diagnostics` can check for `emitError`, but I'm not sure how to handle `signalPassFailure`.
> 
> Emit an error message before the `return signalPassFailure` and check for the error message?

https://github.com/llvm/llvm-project/blob/57d109c4c93c8cf2d7ff9e5877a48152ed7a617a/mlir/test/Transforms/remove-dead-values.mlir#L3-L12
It has already been checked.

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


More information about the Mlir-commits mailing list