[Openmp-commits] [llvm] [openmp] [OpenMP] New Openmp device RTL functions (PR #73225)

via Openmp-commits openmp-commits at lists.llvm.org
Wed Nov 29 01:23:27 PST 2023


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 9b374a800d18c02cc7881774c73352876f9e0cef 284a2b158bad03fe2a21a3b16245ac1cd40fec4e -- openmp/libomptarget/DeviceRTL/src/Workshare.cpp
``````````

</details>

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

``````````diff
diff --git a/openmp/libomptarget/DeviceRTL/src/Workshare.cpp b/openmp/libomptarget/DeviceRTL/src/Workshare.cpp
index fa89b4d609..b587b85cc0 100644
--- a/openmp/libomptarget/DeviceRTL/src/Workshare.cpp
+++ b/openmp/libomptarget/DeviceRTL/src/Workshare.cpp
@@ -862,22 +862,21 @@ public:
 } // namespace ompx
 
 #define OMP_LOOP_ENTRY(BW, TY)                                                 \
-  [[gnu::flatten, clang::always_inline]]                                       \
-  void __kmpc_distribute_for_static_loop##BW(                                  \
-      IdentTy *loc, void (*fn)(TY, void *), void *arg, TY num_iters,           \
-      TY num_threads, TY block_chunk, TY thread_chunk) {                       \
+  [[gnu::flatten, clang::always_inline]] void                                  \
+      __kmpc_distribute_for_static_loop##BW(                                   \
+          IdentTy *loc, void (*fn)(TY, void *), void *arg, TY num_iters,       \
+          TY num_threads, TY block_chunk, TY thread_chunk) {                   \
     ompx::StaticLoopChunker<TY>::DistributeFor(                                \
         loc, fn, arg, num_iters + 1, num_threads, block_chunk, thread_chunk);  \
   }                                                                            \
-  [[gnu::flatten, clang::always_inline]]                                       \
-  void __kmpc_distribute_static_loop##BW(                                      \
-      IdentTy *loc, void (*fn)(TY, void *), void *arg, TY num_iters,           \
-      TY block_chunk) {                                                        \
+  [[gnu::flatten, clang::always_inline]] void                                  \
+      __kmpc_distribute_static_loop##BW(IdentTy *loc, void (*fn)(TY, void *),  \
+                                        void *arg, TY num_iters,               \
+                                        TY block_chunk) {                      \
     ompx::StaticLoopChunker<TY>::Distribute(loc, fn, arg, num_iters + 1,       \
                                             block_chunk);                      \
   }                                                                            \
-  [[gnu::flatten, clang::always_inline]]                                       \
-  void __kmpc_for_static_loop##BW(                                             \
+  [[gnu::flatten, clang::always_inline]] void __kmpc_for_static_loop##BW(      \
       IdentTy *loc, void (*fn)(TY, void *), void *arg, TY num_iters,           \
       TY num_threads, TY thread_chunk) {                                       \
     ompx::StaticLoopChunker<TY>::For(loc, fn, arg, num_iters + 1, num_threads, \

``````````

</details>


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


More information about the Openmp-commits mailing list