[clang] [OpenMP][CodeGen] Improved codegen for combined loop directives (PR #72417)

David Pagan via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 16 10:28:33 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> {
----------------
ddpagan wrote:

Alexey - thanks for the review comments. Good suggestion here. I'll look at moving the analysis.

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


More information about the cfe-commits mailing list