[libclc] [libclc] Move min/max/clamp into the CLC builtins library (PR #114386)

via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 31 03:11:40 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 b2bdd8bd39e90bfe3c66f6d5600468570a77ede6 bac2d7c143b7a40fe6cf50c8c57cf00897874fa8 --extensions inc,h -- libclc/clc/include/clc/shared/clc_clamp.h libclc/clc/include/clc/shared/clc_clamp.inc libclc/clc/include/clc/shared/clc_max.h libclc/clc/include/clc/shared/clc_max.inc libclc/clc/include/clc/shared/clc_min.h libclc/clc/include/clc/shared/clc_min.inc libclc/clc/lib/generic/shared/clc_clamp.inc libclc/clc/lib/generic/shared/clc_max.inc libclc/clc/lib/generic/shared/clc_min.inc libclc/clc/include/clc/clcfunc.h libclc/generic/lib/math/math.h libclc/generic/lib/shared/clamp.inc libclc/generic/lib/shared/max.inc libclc/generic/lib/shared/min.inc libclc/clc/include/clc/integer/gentype.inc libclc/clc/include/clc/math/gentype.inc
``````````

</details>

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

``````````diff
diff --git a/libclc/clc/include/clc/integer/gentype.inc b/libclc/clc/include/clc/integer/gentype.inc
index cefed9c5e5..2c8dd143db 100644
--- a/libclc/clc/include/clc/integer/gentype.inc
+++ b/libclc/clc/include/clc/integer/gentype.inc
@@ -1,5 +1,5 @@
-//These 2 defines only change when switching between data sizes or base types to
-//keep this file manageable.
+// These 2 defines only change when switching between data sizes or base types
+// to keep this file manageable.
 #define __CLC_GENSIZE 8
 #define __CLC_SCALAR_GENTYPE char
 

``````````

</details>


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


More information about the cfe-commits mailing list