[libclc] [libclc] Use float sw_fma for spirv*-mesa-mesa3d targets (PR #199626)

via cfe-commits cfe-commits at lists.llvm.org
Tue May 26 01:30:45 PDT 2026


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 origin/main HEAD --extensions cl -- libclc/clc/lib/generic/math/clc_fma.cl libclc/clc/lib/generic/math/clc_sw_fma.cl --diff_from_common_commit
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

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

``````````diff
diff --git a/libclc/clc/lib/generic/math/clc_fma.cl b/libclc/clc/lib/generic/math/clc_fma.cl
index f44fc97fe..6d7ea232f 100644
--- a/libclc/clc/lib/generic/math/clc_fma.cl
+++ b/libclc/clc/lib/generic/math/clc_fma.cl
@@ -7,9 +7,9 @@
 //===----------------------------------------------------------------------===//
 
 #include "clc/internal/clc.h"
+#include "clc/internal/math/clc_sw_fma.h"
 #include "clc/math/clc_fma.h"
 #include "clc/math/math.h"
-#include "clc/internal/math/clc_sw_fma.h"
 
 #define __CLC_FUNCTION __clc_fma
 #define __CLC_IMPL_FUNCTION(x) __builtin_elementwise_fma

``````````

</details>


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


More information about the cfe-commits mailing list