[mlir][Math] Add constant folder for TanOp.
authorjacquesguan <Jianjian.Guan@streamcomputing.com>
Mon, 1 Aug 2022 07:52:55 +0000 (15:52 +0800)
committerjacquesguan <Jianjian.Guan@streamcomputing.com>
Tue, 2 Aug 2022 03:20:53 +0000 (11:20 +0800)
commitf1033a3f47da1bdd757bf596fee8bdaa64dfe925
tree9c748e3e2cb23f0675eabd0da7f38c913724c199
parent39cfde236693a928ff6594ddc321c4550237cfaa
[mlir][Math] Add constant folder for TanOp.

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

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