[mlir][math] Canonicalization for math.floor op
authorKai Sasaki <lewuathe@gmail.com>
Thu, 8 Sep 2022 23:59:18 +0000 (08:59 +0900)
committerKai Sasaki <lewuathe@gmail.com>
Fri, 9 Sep 2022 01:21:48 +0000 (10:21 +0900)
commit5bb621056b10c1dd85ad2599e6e14e1bdc6c8896
treea83e6df52cd183a1f26a9bdde9ec8c367fc09392
parentb6655333c25556d2d9e3a9d73f488d525176d71c
[mlir][math] Canonicalization for math.floor op

Support constant folding for math.floor op as well as math.ceil.

Reviewed By: Mogball

Differential Revision: https://reviews.llvm.org/D133398
mlir/include/mlir/Dialect/Math/IR/MathOps.td
mlir/lib/Dialect/Math/IR/MathOps.cpp
mlir/test/Dialect/Math/canonicalize.mlir