[clang] [llvm] Hlsl asint16 intrinsic (PR #131900)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 18 12:48:04 PDT 2025
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 d039af33096c0a83b03475a240d5e281e2271c44 e603f23c84d36078643e7cc0a28f4abaef376ccc --extensions h -- clang/lib/Headers/hlsl/hlsl_intrinsics.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/Headers/hlsl/hlsl_intrinsics.h b/clang/lib/Headers/hlsl/hlsl_intrinsics.h
index e0366693de..e1074eebd4 100644
--- a/clang/lib/Headers/hlsl/hlsl_intrinsics.h
+++ b/clang/lib/Headers/hlsl/hlsl_intrinsics.h
@@ -89,7 +89,8 @@ void asuint(double4, out uint4, out uint4);
/// \param Val The input value.
#ifdef __HLSL_ENABLE_16_BIT
-template <typename T, int N> constexpr vector<int16_t, N> asint16(vector<T, N> V) {
+template <typename T, int N>
+constexpr vector<int16_t, N> asint16(vector<T, N> V) {
return __detail::bit_cast<int16_t, T, N>(V);
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/131900
More information about the llvm-commits
mailing list