[libclc] [libclc] Move conversion builtins to the CLC library (PR #124727)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Jan 28 02:43:31 PST 2025
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {darker}-->
:warning: Python code formatter, darker found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
darker --check --diff -r cfc8ef0ad8f70be22b44a8e1b56856795eb18282...4d5e786aa5c769e751d062662897a9882b607344 libclc/generic/lib/gen_convert.py
``````````
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- gen_convert.py 2025-01-28 10:37:12.000000 +0000
+++ gen_convert.py 2025-01-28 10:43:01.279639 +0000
@@ -165,26 +165,28 @@
nl = "\n"
includes = []
if not clc:
includes = ["<clc/clc.h>"]
else:
- includes = sorted([
- "<clc/internal/clc.h>",
- "<clc/integer/definitions.h>",
- "<clc/float/definitions.h>",
- "<clc/integer/clc_abs.h>",
- "<clc/common/clc_sign.h>",
- "<clc/shared/clc_clamp.h>",
- "<clc/shared/clc_min.h>",
- "<clc/shared/clc_max.h>",
- "<clc/math/clc_fabs.h>",
- "<clc/math/clc_rint.h>",
- "<clc/math/clc_ceil.h>",
- "<clc/math/clc_floor.h>",
- "<clc/math/clc_nextafter.h>",
- "<clc/relational/clc_select.h>",
- ])
+ includes = sorted(
+ [
+ "<clc/internal/clc.h>",
+ "<clc/integer/definitions.h>",
+ "<clc/float/definitions.h>",
+ "<clc/integer/clc_abs.h>",
+ "<clc/common/clc_sign.h>",
+ "<clc/shared/clc_clamp.h>",
+ "<clc/shared/clc_min.h>",
+ "<clc/shared/clc_max.h>",
+ "<clc/math/clc_fabs.h>",
+ "<clc/math/clc_rint.h>",
+ "<clc/math/clc_ceil.h>",
+ "<clc/math/clc_floor.h>",
+ "<clc/math/clc_nextafter.h>",
+ "<clc/relational/clc_select.h>",
+ ]
+ )
print(
f"""/* !!!! AUTOGENERATED FILE generated by convert_type.py !!!!!
DON'T CHANGE THIS FILE. MAKE YOUR CHANGES TO convert_type.py AND RUN:
``````````
</details>
https://github.com/llvm/llvm-project/pull/124727
More information about the cfe-commits
mailing list