[clang] [llvm] [HLSL][DXIL] Implement `refract` intrinsic (PR #147342)

Sarah Spall via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 14 11:35:56 PDT 2025


================
@@ -79,7 +79,7 @@ let TargetPrefix = "spv" in {
   def int_spv_refract
       : DefaultAttrsIntrinsic<[LLVMMatchType<0>],
                               [llvm_anyfloat_ty, LLVMMatchType<0>,
-                              LLVMVectorElementType<0>],
+                              llvm_anyfloat_ty],
----------------
spall wrote:

Is it because the first argument might not be a vector?

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


More information about the llvm-commits mailing list