[flang-commits] [flang] [mlir][Interfaces] `LoopLikeOpInterface`: Add helper to get yielded values (PR #67305)

Matthias Springer via flang-commits flang-commits at lists.llvm.org
Mon Sep 25 03:33:15 PDT 2023


================
@@ -2106,7 +2106,7 @@ def fir_DoLoopOp : region_Op<"do_loop",
     mlir::OpBuilder getBodyBuilder() {
       return mlir::OpBuilder(getBody(), std::prev(getBody()->end()));
     }
-    mlir::Block::BlockArgListType getRegionIterArgs() {
----------------
matthias-springer wrote:

Flang loops have some special semantics around iter_args and I'm not sure how to expose inits, iter_args and yielded values through the interface in a way that it verifies. (I think it's possible, but by renaming this function I can skip this verification for now; exposing iter_args through the interface is optional.)

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


More information about the flang-commits mailing list