[clang] [libclc] libclc: remove __attribute__((assume)) for clspv targets (PR #92126)
via cfe-commits
cfe-commits at lists.llvm.org
Tue May 14 07:14:37 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 041baf2f60ac3e107399641aea04c77019e7eab8 4dc2646a51a05abe7cfb539325dbd57d507dfceb -- clang/lib/CodeGen/CodeGenFunction.cpp libclc/generic/include/clc/clcfunc.h
``````````
</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 59f45c2701..086d780b97 100644
--- a/libclc/generic/include/clc/clcfunc.h
+++ b/libclc/generic/include/clc/clcfunc.h
@@ -7,8 +7,7 @@
#if defined(CLC_SPIRV) || defined(CLC_SPIRV64)
#define _CLC_DEF
#elif defined(CLC_CLSPV) || defined(CLC_CLSPV64)
-#define _CLC_DEF \
- __attribute__((noinline)) __attribute__((clspv_libclc_builtin))
+#define _CLC_DEF __attribute__((noinline)) __attribute__((clspv_libclc_builtin))
#else
#define _CLC_DEF __attribute__((always_inline))
#endif
``````````
</details>
https://github.com/llvm/llvm-project/pull/92126
More information about the cfe-commits
mailing list