[Mlir-commits] [mlir] [tblgen] Use `emitError` for inferResultTypes failures (PR #165488)

Jacques Pienaar llvmlistbot at llvm.org
Tue Oct 28 21:00:27 PDT 2025


https://github.com/jpienaar requested changes to this pull request.

MLIR build calls with invalid inputs aren't expected to pass/will crash in many cases. If the type inference fails it's due to invalid config and there should be no build: nothing is checking for failure today and it would silently result in invalid op's state being propagated.

What folks do here sometimes is two step, infer result type and then build (if valid) with explicit type. That could be made into a helper.

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


More information about the Mlir-commits mailing list