This is an automated email from the ASF dual-hosted git repository.

tqchen pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm-tirx.git


The following commit(s) were added to refs/heads/main by this push:
     new 13d57030f [FIX] Lower scalar fmod through the default intrinsic rule 
(#66)
13d57030f is described below

commit 13d57030f3b43eb0aca05ae984830c1ebbb51c9e
Author: Tianqi Chen <[email protected]>
AuthorDate: Sun Oct 25 12:37:03 2026 -0400

    [FIX] Lower scalar fmod through the default intrinsic rule (#66)
---
 src/codegen/intrin_rule.cc | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/codegen/intrin_rule.cc b/src/codegen/intrin_rule.cc
index 899f3e412..40f4dbe16 100644
--- a/src/codegen/intrin_rule.cc
+++ b/src/codegen/intrin_rule.cc
@@ -132,6 +132,9 @@ TVM_FFI_STATIC_INIT_BLOCK() {
   OpDef("prim.sqrt")
       .set_attr<FLowerIntrinsic>("default.FLowerIntrinsic", 
DispatchPureExtern<FloatSuffix>);
 
+  OpDef("prim.fmod")
+      .set_attr<FLowerIntrinsic>("default.FLowerIntrinsic", 
DispatchPureExtern<FloatSuffix>);
+
   OpDef("prim.floor")
       .set_attr<FLowerIntrinsic>("default.FLowerIntrinsic", 
DispatchPureExtern<FloatSuffix>);
 

Reply via email to