[clang] [llvm] [HLSL] Implementation of the fmod intrinsic (PR #108849)
Farzon Lotfi via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 16 10:27:08 PDT 2024
================
@@ -90,4 +90,5 @@ def int_dx_rsqrt : DefaultAttrsIntrinsic<[llvm_anyfloat_ty], [LLVMMatchType<0>]
def int_dx_wave_is_first_lane : DefaultAttrsIntrinsic<[llvm_i1_ty], [], [IntrConvergent]>;
def int_dx_sign : DefaultAttrsIntrinsic<[LLVMScalarOrSameVectorWidth<0, llvm_i32_ty>], [llvm_any_ty]>;
def int_dx_step : DefaultAttrsIntrinsic<[LLVMMatchType<0>], [llvm_anyfloat_ty, LLVMMatchType<0>]>;
+def int_dx_fmod : DefaultAttrsIntrinsic<[LLVMMatchType<0>], [llvm_anyfloat_ty, LLVMMatchType<0>]>;
----------------
farzonl wrote:
we can modify the intrinsic expansion pass to catch frem. there is no reason that pas just has to work on intrinsics.
https://github.com/llvm/llvm-project/pull/108849
More information about the cfe-commits
mailing list