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

Alexey Bataev via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 11 12:19:28 PDT 2024


================
@@ -11311,6 +11311,10 @@ class Sema final {
                         OpenMPDirectiveKind &Kind,
                         OpenMPDirectiveKind &PrevMappedDirective);
 
+  /// [target] teams loop is equivalent to parallel for if associated loop
+  /// nest meets certain critera.
+  bool teamsLoopCanBeParallelFor(Stmt *Astmt);
+
----------------
alexey-bataev wrote:

Do you really need to expose it in Sema or you can make it just a static local function in SemaOpenMP.cpp?

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


More information about the cfe-commits mailing list