[Openmp-commits] [clang] [openmp] [OpenMP 6.0 ]Codegen for Reduction over private variables with reduction clause (PR #134709)
via Openmp-commits
openmp-commits at lists.llvm.org
Fri May 9 03:24:13 PDT 2025
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 HEAD~1 HEAD --extensions h,cpp -- clang/test/OpenMP/for_private_reduction_codegen.cpp openmp/runtime/test/worksharing/for/omp_for_private_reduction.cpp clang/lib/CodeGen/CGOpenMPRuntime.cpp clang/lib/CodeGen/CGOpenMPRuntime.h clang/lib/CodeGen/CGStmtOpenMP.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/openmp/runtime/test/worksharing/for/omp_for_private_reduction.cpp b/openmp/runtime/test/worksharing/for/omp_for_private_reduction.cpp
index 0a3bbafd9..7227b974c 100644
--- a/openmp/runtime/test/worksharing/for/omp_for_private_reduction.cpp
+++ b/openmp/runtime/test/worksharing/for/omp_for_private_reduction.cpp
@@ -1,4 +1,4 @@
-//RUN: %libomp-cxx-compile -fopenmp-version=60 && %libomp-run
+// RUN: %libomp-cxx-compile -fopenmp-version=60 && %libomp-run
#include <stdio.h>
#include <omp.h>
#include "omp_testsuite.h"
@@ -65,8 +65,8 @@ int main(void) {
int input_array[N];
int total_errors = 0;
const float kPiVal = 3.14f;
- const int kExpectedSum = 45; // Sum of 0..9
- const int kExpectedProd = 3628800; // 10!
+ const int kExpectedSum = 45; // Sum of 0..9
+ const int kExpectedProd = 3628800; // 10!
const float kExpectedFsum = kPiVal * N; // 3.14f * 10
for (int i = 0; i < N; i++)
``````````
</details>
https://github.com/llvm/llvm-project/pull/134709
More information about the Openmp-commits
mailing list