[Openmp-commits] [clang] [libclc] [llvm] [openmp] [Clang] `__attribute__((assume))` refactor (PR #84934)

via Openmp-commits openmp-commits at lists.llvm.org
Tue Mar 12 08:44:25 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 bde7a6b791872b63456cb4e50e63046728a65196 79ae39d195e8332c8fd154a5184247312554ddb1 -- clang/lib/Parse/ParseDecl.cpp clang/lib/Sema/SemaStmtAttr.cpp clang/test/CodeGenCXX/assume_attr.cpp clang/test/OpenMP/assumes_codegen.cpp clang/test/OpenMP/assumes_print.cpp clang/test/OpenMP/assumes_template_print.cpp clang/test/OpenMP/remarks_parallel_in_multiple_target_state_machines.c clang/test/OpenMP/remarks_parallel_in_target_state_machine.c clang/test/SemaCXX/cxx23-assume.cpp libclc/generic/include/clc/clcfunc.h llvm/lib/Transforms/IPO/OpenMPOpt.cpp
``````````

</details>

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

``````````diff
diff --git a/libclc/generic/include/clc/clcfunc.h b/libclc/generic/include/clc/clcfunc.h
index fa6c094db2..0b0a401569 100644
--- a/libclc/generic/include/clc/clcfunc.h
+++ b/libclc/generic/include/clc/clcfunc.h
@@ -8,7 +8,8 @@
 #define _CLC_DEF
 #elif defined(CLC_CLSPV) || defined(CLC_CLSPV64)
 #define _CLC_DEF                                                               \
-  __attribute__((noinline)) __attribute__((__omp_assume__("clspv_libclc_builtin")))
+  __attribute__((noinline))                                                    \
+  __attribute__((__omp_assume__("clspv_libclc_builtin")))
 #else
 #define _CLC_DEF __attribute__((always_inline))
 #endif

``````````

</details>


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


More information about the Openmp-commits mailing list