[clang] [llvm] [HLSL] Adding HLSL `clip` function. (PR #114588)

Finn Plummer via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 7 12:23:52 PST 2024


================
@@ -89,6 +89,7 @@ let TargetPrefix = "spv" in {
   def int_spv_sign : DefaultAttrsIntrinsic<[LLVMScalarOrSameVectorWidth<0, llvm_i32_ty>], [llvm_any_ty], [IntrNoMem]>;
   def int_spv_radians : DefaultAttrsIntrinsic<[LLVMMatchType<0>], [llvm_anyfloat_ty], [IntrNoMem]>;
   def int_spv_group_memory_barrier_with_group_sync : DefaultAttrsIntrinsic<[], [], []>;
+  def int_spv_clip : Intrinsic<[], [], []>;
----------------
inbelic wrote:

The attributes here don't match with the dx version.

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


More information about the llvm-commits mailing list