[ARITH] Add Lowering rule for FloorDiv/Mod (#3976)
authorTianqi Chen <tqchen@users.noreply.github.com>
Fri, 20 Sep 2019 17:17:04 +0000 (10:17 -0700)
committerGitHub <noreply@github.com>
Fri, 20 Sep 2019 17:17:04 +0000 (10:17 -0700)
commitd7a09150a4e015d6d89be054f06da6d3343ecdab
tree5cdbed2f3d54e535c18d70779035916685165aad
parent719d6d47397b340b5e72d9e71928f3dea5efed89
[ARITH] Add Lowering rule for FloorDiv/Mod (#3976)

* [ARITH] Add Lowering rule for FloorDiv/Mod

* add comment about constant folding
15 files changed:
include/tvm/expr_operator.h
python/tvm/api.py
src/api/api_ir.cc
src/arithmetic/const_fold.h
src/arithmetic/int_operator.h
src/arithmetic/ir_mutator_with_analyzer.cc
src/arithmetic/ir_mutator_with_analyzer.h
src/arithmetic/pattern_match.h
src/arithmetic/rewrite_simplify.cc
src/arithmetic/rewrite_simplify.h
src/arithmetic/stmt_simplify.cc
src/lang/expr_operator.cc
src/pass/lower_intrin.cc
tests/python/unittest/test_codegen_llvm.py
tests/python/unittest/test_pass_lower_intrin.py [new file with mode: 0644]