[Mlir-commits] [mlir] [RFC][mlir][func] Enforce func.return as sole terminator in func.func regions (PR #184778)

Matthias Springer llvmlistbot at llvm.org
Thu Mar 5 04:41:55 PST 2026


================
@@ -1160,6 +1160,25 @@ struct TestSplitReturnType : public ConversionPattern {
   }
 };
 
+/// This pattern handles func.return when the operand type is split (1:N
+/// mapping). E.g., func.return %f32 -> func.return %f16_a, %f16_b.
+struct TestSplitFuncReturnType : public OpConversionPattern<func::ReturnOp> {
----------------
matthias-springer wrote:

I expected this pattern to look similar to the above `TestSplitReturnType`, but the `replaceOpWithNewOp` looks different. What's happening here?

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


More information about the Mlir-commits mailing list