[mlir][Math] Add constant folder for AtanOp.
authorjacquesguan <Jianjian.Guan@streamcomputing.com>
Tue, 2 Aug 2022 11:49:11 +0000 (19:49 +0800)
committerjacquesguan <Jianjian.Guan@streamcomputing.com>
Wed, 3 Aug 2022 06:10:02 +0000 (14:10 +0800)
commit752c9d0dab8b6111204182dcf29a27622ae94921
treeb6613f39857797ce9cc4abcc370e685354a85157
parentc44c71843f3eca71ef109d2e0730722a6d8e5675
[mlir][Math] Add constant folder for AtanOp.

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

Differential Revision: https://reviews.llvm.org/D130983
mlir/include/mlir/Dialect/Math/IR/MathOps.td
mlir/lib/Dialect/Math/IR/MathOps.cpp
mlir/test/Dialect/Math/canonicalize.mlir
mlir/test/mlir-cpu-runner/math-polynomial-approx.mlir