[flang-commits] [flang] [OpenMP]Update use_device_clause lowering (PR #101703)

Sergio Afonso via flang-commits flang-commits at lists.llvm.org
Wed Aug 21 06:35:17 PDT 2024


================
@@ -692,53 +692,102 @@ static void createBodyOfOp(mlir::Operation &op, const OpWithBodyGenInfo &info,
   marker->erase();
 }
 
+void mapBodySymbols(lower::AbstractConverter &converter, mlir::Region &region,
+                    mlir::Block *regionBlock,
----------------
skatrak wrote:

Nit: Could this argument be removed and just access it from `region.front()`? This function is expected to be called while building the entry block, so we can just `assert(region.hasOneBlock())`.

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


More information about the flang-commits mailing list