[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:38 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;
+ }
+}
----------------
kiranchandramohan wrote:
Not for this patch, but can this be specified in OMP.td and generated?
https://github.com/llvm/llvm-project/pull/113167
More information about the llvm-commits
mailing list