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

Mats Petersson via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 22 11:14:04 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;
+  }
+}
----------------
Leporacanthicus wrote:

Nitpick: Maybe define in the header - it's a pretty trivial function.

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


More information about the llvm-commits mailing list