[clang] [llvm] [Clang][OMPX] Add the code generation for multi-dim `thread_limit` clause (PR #102717)

via cfe-commits cfe-commits at lists.llvm.org
Sat Aug 10 14:49:05 PDT 2024


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff a417083e27b155dc92b7f7271c0093aee0d7231c 323ab9b867ade1b029bf55bff07d71abfc9d09ac --extensions h,cpp -- clang/lib/CodeGen/CGOpenMPRuntime.cpp clang/test/OpenMP/target_teams_codegen.cpp llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/clang/lib/CodeGen/CGOpenMPRuntime.cpp b/clang/lib/CodeGen/CGOpenMPRuntime.cpp
index c15e93ebe6..3412048699 100644
--- a/clang/lib/CodeGen/CGOpenMPRuntime.cpp
+++ b/clang/lib/CodeGen/CGOpenMPRuntime.cpp
@@ -9682,7 +9682,8 @@ static void emitTargetCallKernelLaunch(
                                                              NumThreads);
     } else {
       NumTeams.push_back(OMPRuntime->emitNumTeamsForTargetDirective(CGF, D));
-      NumThreads.push_back(OMPRuntime->emitNumThreadsForTargetDirective(CGF, D));
+      NumThreads.push_back(
+          OMPRuntime->emitNumThreadsForTargetDirective(CGF, D));
     }
 
     llvm::Value *DeviceID = emitDeviceID(Device, CGF);

``````````

</details>


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


More information about the cfe-commits mailing list