[clang] Hlsl dst function (PR #133828)
Damyan Pepper via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 2 15:25:14 PDT 2025
================
@@ -35,6 +35,12 @@ length_vec_impl(vector<T, N> X) {
#endif
}
+template <typename T>
+constexpr vector<T, 4> dst_impl(vector<T, 4> src0, vector<T, 4> src1) {
+ vector<T, 4> dest = {1, src0[1] * src1[1], src0[2], src1[3]};
+ return dest;
+}
----------------
damyanp wrote:
It looks like this needs to be done across most of the tests. I won't call out each one, but can you do a pass through to make sure this is following the naming conventions please?
https://github.com/llvm/llvm-project/pull/133828
More information about the cfe-commits
mailing list