[clang] [llvm] Add length HLSL function to DirectX Backend (PR #101256)
    Damyan Pepper via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Thu Aug  1 11:03:33 PDT 2024
    
    
  
================
@@ -63,5 +63,6 @@ let TargetPrefix = "spv" in {
   def int_spv_frac : DefaultAttrsIntrinsic<[LLVMMatchType<0>], [llvm_anyfloat_ty]>;
   def int_spv_lerp : Intrinsic<[LLVMMatchType<0>], [llvm_anyfloat_ty, LLVMMatchType<0>,LLVMMatchType<0>], 
     [IntrNoMem, IntrWillReturn] >;
+  def int_spv_length : DefaultAttrsIntrinsic<[LLVMVectorElementType<0>], [llvm_anyfloat_ty]>;
----------------
damyanp wrote:
I thought this change didn't include the SPIRV parts of this?
https://github.com/llvm/llvm-project/pull/101256
    
    
More information about the llvm-commits
mailing list