[flang-commits] [flang] [flang][OpenMP] Extend `do concurrent` mapping to device (PR #155987)

Sergio Afonso via flang-commits flang-commits at lists.llvm.org
Tue Sep 9 07:16:39 PDT 2025


================
@@ -244,6 +325,51 @@ class DoConcurrentConversion
   }
 
 private:
+  struct TargetDeclareShapeCreationInfo {
+    // Note: We use `std::vector` (rather than `llvm::SmallVector` as usual) to
+    // interface more easily `ShapeShiftOp::getOrigins()` which returns
+    // `std::vector`.
+    std::vector<mlir::Value> startIndices{};
+    std::vector<mlir::Value> extents{};
----------------
skatrak wrote:

```suggestion
    std::vector<mlir::Value> startIndices;
    std::vector<mlir::Value> extents;
```

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


More information about the flang-commits mailing list