[Mlir-commits] [mlir] [MLIR][Linalg] Harden parsing Linalg named ops (PR #145337)

Renato Golin llvmlistbot at llvm.org
Mon Jun 23 08:25:44 PDT 2025


================
@@ -500,8 +531,13 @@ class RegionBuilderHelper {
         return builder.create<complex::SubOp>(arg0.getLoc(), arg0, arg1);
       if (allFloatingPoint)
         return builder.create<arith::SubFOp>(arg0.getLoc(), arg0, arg1);
-      if (allBool)
+      if (allBool) {
+        if (emitError) {
----------------
rengolin wrote:

There's a lot of repetition of this pattern. Could we perhaps simplify into an extern function?

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


More information about the Mlir-commits mailing list