[clang] [OpenMP][CodeGen] Improved codegen for combined loop directives (PR #72417)
Alexey Bataev via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 15 09:45:57 PST 2023
================
@@ -7485,6 +7485,99 @@ void CodeGenModule::printPostfixForExternalizedDecl(llvm::raw_ostream &OS,
}
}
+namespace {
+/// A 'teams loop' with a nested 'loop bind(parallel)' or generic function
+/// call in the associated loop-nest cannot be a 'parllel for'.
+class TeamsLoopChecker final : public ConstStmtVisitor<TeamsLoopChecker> {
----------------
alexey-bataev wrote:
Better to do this analysis in Sema and mark the region appropriately
https://github.com/llvm/llvm-project/pull/72417
More information about the cfe-commits
mailing list