[flang] [llvm] [mlir] [flang][OpenMP] Enable tiling (PR #143715)

Jack Styles via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 26 06:53:44 PDT 2025


================
@@ -5024,8 +5024,9 @@ struct OpenMPBlockConstruct {
 struct OpenMPLoopConstruct {
   TUPLE_CLASS_BOILERPLATE(OpenMPLoopConstruct);
   OpenMPLoopConstruct(OmpBeginLoopDirective &&a)
-      : t({std::move(a), std::nullopt, std::nullopt}) {}
+      : t({std::move(a), std::nullopt, std::nullopt, std::nullopt}) {}
   std::tuple<OmpBeginLoopDirective, std::optional<DoConstruct>,
+      std::optional<common::Indirection<OpenMPLoopConstruct>>,
----------------
Stylie777 wrote:

OK, the changes I have worked on give a similar parsing outcome. For reference, this will be my version of `OpenMPLoopConstruct`
```
struct OpenMPLoopConstruct {
  TUPLE_CLASS_BOILERPLATE(OpenMPLoopConstruct);
  OpenMPLoopConstruct(OmpBeginLoopDirective &&a)
      : t({std::move(a), std::nullopt, std::nullopt}) {}
  std::tuple<OmpBeginLoopDirective, std::optional<std::variant<DoConstruct, common::Indirection<OpenMPLoopConstruct>>>,
      std::optional<OmpEndLoopDirective>>
      t;
};
```



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


More information about the llvm-commits mailing list