[mlir][Math] Add constant folder for Log1pOp.
authorjacquesguan <Jianjian.Guan@streamcomputing.com>
Mon, 18 Jul 2022 02:36:12 +0000 (10:36 +0800)
committerjacquesguan <Jianjian.Guan@streamcomputing.com>
Wed, 20 Jul 2022 06:59:35 +0000 (14:59 +0800)
commitc3d856bf58bf227ffb475fcbb51a1e21b026a7ee
tree181d0791121e2869d3ce4d8cc19534f4a2f9f050
parente931c2e870f96a19669e354086c49fa3ec8e6716
[mlir][Math] Add constant folder for Log1pOp.

This patch adds constant folder for Log1pOp which only supports single and double precision floating-point.

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