[Mlir-commits] [mlir] [mlir][linalg] Edit the yieldOutputs method's builder (PR #73900)

Mehdi Amini llvmlistbot at llvm.org
Wed Nov 29 23:11:24 PST 2023


================
@@ -480,8 +480,8 @@ class RegionBuilderHelper {
     llvm_unreachable("unsupported type conversion function");
   }
 
-  void yieldOutputs(ValueRange values) {
-    OpBuilder builder = getBuilder();
+  void yieldOutputs(OpBuilder builder, ValueRange values) {
+    builder.setInsertionPointToEnd(&block);
----------------
joker-eph wrote:

What's the difference here exactly with before? Looking at the implementation of `getBuilder()` I'm not spotting it immediately.

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


More information about the Mlir-commits mailing list