[flang] [llvm] [flang][OpenMP] Parsing support for iterator modifiers in FROM and TO (PR #114593)

Kiran Chandramohan via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 4 05:31:05 PST 2024


================
@@ -2138,6 +2138,27 @@ class UnparseVisitor {
     Put(",");
     Walk(std::get<std::optional<ScalarIntConstantExpr>>(x.t));
   }
+  void Unparse(const OmpFromClause &x) {
+    auto &expect =
+        std::get<std::optional<std::list<OmpFromClause::Expectation>>>(x.t);
+    auto &iter = std::get<std::optional<std::list<OmpIteratorModifier>>>(x.t);
----------------
kiranchandramohan wrote:

Nit: braced initialization.

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


More information about the llvm-commits mailing list