[flang] [llvm] [flang][OpenMP] Parse iterators, add to MAP clause, TODO for lowering (PR #113167)

Kiran Chandramohan via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 22 09:57:39 PDT 2024


================
@@ -1547,6 +1548,17 @@ class OmpVisitor : public virtual DeclarationVisitor {
   void Post(const parser::OpenMPAtomicConstruct &) {
     messageHandler().set_currStmtSource(std::nullopt);
   }
+  bool Pre(const parser::OmpClause &x) {
+    if (NeedsScope(x)) {
+      PushScope(Scope::Kind::OtherConstruct, nullptr);
----------------
kiranchandramohan wrote:

Would it work if we add `OtherClause`?

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


More information about the llvm-commits mailing list