[clang] [llvm] [HLSL] Implement ddx/ddy_coarse intrinsics (PR #164831)
    Alexander Johnston via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Thu Oct 23 11:32:35 PDT 2025
    
    
  
================
@@ -0,0 +1,61 @@
+// RUN: %clang_cc1 -finclude-default-header  -x hlsl  -triple dxil-pc-shadermodel6.3-library %s \
+// RUN:  -emit-llvm -disable-llvm-passes -fnative-half-type -o - | \
+// RUN:  FileCheck %s --check-prefixes=CHECK
+
+using hlsl::ddx_coarse;
+
+// CHECK: define linkonce_odr hidden noundef nofpclass(nan inf) half @
+// CHECK: %hlsl.ddx.coarse = call reassoc nnan ninf nsz arcp afn half @llvm.dx.ddx.coarse.f16(half %{{.*}})
----------------
Alexander-Johnston wrote:
Good idea, thank you! Sorted
https://github.com/llvm/llvm-project/pull/164831
    
    
More information about the llvm-commits
mailing list