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

Krzysztof Parzyszek via flang-commits flang-commits at lists.llvm.org
Tue Oct 22 12:34:14 PDT 2024


================
@@ -193,6 +193,20 @@ bool isCombinedConstruct(Directive D) {
   return !getLeafConstructs(D).empty() && !isCompositeConstruct(D);
 }
 
+bool canHaveIterator(Clause C) {
+  // [5.2:67:5]
+  switch (C) {
+  case OMPC_affinity:
+  case OMPC_depend:
+  case OMPC_from:
+  case OMPC_map:
+  case OMPC_to:
+    return true;
+  default:
+    return false;
+  }
+}
----------------
kparzysz wrote:

Done.

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


More information about the flang-commits mailing list