[mlir][Math] Add constant folder for sqrt.
authorjacquesguan <Jianjian.Guan@streamcomputing.com>
Fri, 18 Mar 2022 06:16:47 +0000 (14:16 +0800)
committerjacquesguan <Jianjian.Guan@streamcomputing.com>
Fri, 18 Mar 2022 08:01:44 +0000 (16:01 +0800)
commit26c95ae38940b5b6ccfc65188ba9931eb51e468e
treed976758105bb71150b07cfefe1b3ddd6a0211ca6
parent14bd14f9f92f9f5eff43ec3a977b127dea1cb521
[mlir][Math] Add constant folder for sqrt.

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