[llvm] [SPIR-V] Add support for OpFMod intrinsic (PR #193172)
Arseniy Obolenskiy via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 21 04:22:13 PDT 2026
================
@@ -98,6 +98,7 @@ let TargetPrefix = "spv" in {
def int_spv_degrees : DefaultAttrsIntrinsic<[LLVMMatchType<0>], [llvm_anyfloat_ty], [IntrNoMem]>;
def int_spv_distance : DefaultAttrsIntrinsic<[LLVMVectorElementType<0>], [llvm_anyfloat_ty, LLVMMatchType<0>], [IntrNoMem]>;
def int_spv_faceforward : DefaultAttrsIntrinsic<[LLVMMatchType<0>], [llvm_anyfloat_ty, LLVMMatchType<0>, LLVMMatchType<0>], [IntrNoMem]>;
+ def int_spv_fmod : DefaultAttrsIntrinsic<[LLVMMatchType<0>], [llvm_anyfloat_ty, LLVMMatchType<0>], [IntrNoMem]>;
----------------
aobolensk wrote:
Currently nothing emits it, do you have any better ways to utilize OpFMod by getting that from the existing intrinsics?
https://github.com/llvm/llvm-project/pull/193172
More information about the llvm-commits
mailing list