[flang-commits] [flang] [openmp] [OpenMP] [Flang] Resolved Issue llvm#76121: Implemented Check for Unhandled Arguments in __kmpc_fork_call_if (PR #82221)
via flang-commits
flang-commits at lists.llvm.org
Thu Apr 11 23:04:16 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 dd7386d85f11cf6ad911b9827c7018fb08c6c205 2c4b38bb9669a446034eb60b4e5ba2b8565ba674 -- openmp/runtime/test/misc_bugs/omp__kmpc_fork_call_if.c
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/openmp/runtime/test/misc_bugs/omp__kmpc_fork_call_if.c b/openmp/runtime/test/misc_bugs/omp__kmpc_fork_call_if.c
index de26038567..eb8cc2eabe 100644
--- a/openmp/runtime/test/misc_bugs/omp__kmpc_fork_call_if.c
+++ b/openmp/runtime/test/misc_bugs/omp__kmpc_fork_call_if.c
@@ -3,22 +3,21 @@
#include <stdio.h>
#include <omp.h>
-
// Microtask function for parallel region
-void microtask(int* global_tid, int* bound_tid) {
-// CHECK: PASS
- if (omp_in_parallel()) {
- printf("FAIL\n");
- } else {
- printf("PASS\n");
- }
+void microtask(int *global_tid, int *bound_tid) {
+ // CHECK: PASS
+ if (omp_in_parallel()) {
+ printf("FAIL\n");
+ } else {
+ printf("PASS\n");
+ }
}
int main() {
- // Condition for parallelization (false in this case)
- int cond = 0;
+ // Condition for parallelization (false in this case)
+ int cond = 0;
- // Call __kmpc_fork_call_if
- __kmpc_fork_call_if(NULL, 0, microtask, cond, NULL);
- return 0;
+ // Call __kmpc_fork_call_if
+ __kmpc_fork_call_if(NULL, 0, microtask, cond, NULL);
+ return 0;
}
\ No newline at end of file
``````````
</details>
https://github.com/llvm/llvm-project/pull/82221
More information about the flang-commits
mailing list