[flang-commits] [flang] [flang][OpenMP] Tolerate compiler directives in loop constructs (PR #169346)
Krzysztof Parzyszek via flang-commits
flang-commits at lists.llvm.org
Mon Nov 24 12:52:02 PST 2025
================
@@ -796,6 +796,28 @@ static void processTileSizesFromOpenMPConstruct(
}
}
+static pft::Evaluation *getNestedDoConstruct(pft::Evaluation &eval) {
+ for (pft::Evaluation &nested : eval.getNestedEvaluations()) {
+ // In an OpenMPConstruct there can be compiler directives:
+ // 1 <<OpenMPConstruct>>
+ // 2 CompilerDirective: !unroll
+ // <<DoConstruct>> -> 8
+ if (nested.getIf<parser::CompilerDirective>())
+ continue;
+ // Within a DoConstruct, there can be compiler directives, plus
----------------
kparzysz wrote:
I can't see it... :neutral_face: Is there something strange about the wording?
https://github.com/llvm/llvm-project/pull/169346
More information about the flang-commits
mailing list