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

David Pagan via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 14 16:52:30 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);
+
----------------
ddpagan wrote:

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

Actually, no. Thanks for noticing that. I'll make the change.

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


More information about the cfe-commits mailing list