[clang] [llvm] [HLSL][SPIRV] Added clamp intrinsic (PR #113394)

Farzon Lotfi via cfe-commits cfe-commits at lists.llvm.org
Sat Oct 26 12:38:21 PDT 2024


================
@@ -83,12 +83,210 @@ entry:
   ret i64 %0
 }
 
-declare half @llvm.dx.clamp.f16(half, half, half)
-declare float @llvm.dx.clamp.f32(float, float, float)
-declare double @llvm.dx.clamp.f64(double, double, double)
-declare i16 @llvm.dx.clamp.i16(i16, i16, i16)
-declare i32 @llvm.dx.clamp.i32(i32, i32, i32)
-declare i64 @llvm.dx.clamp.i64(i64, i64, i64)
+declare half @llvm.dx.nclamp.f16(half, half, half)
----------------
farzonl wrote:

Move these declare(s) to line 230 where all the other declare are.

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


More information about the cfe-commits mailing list