[mlir][complex] Add pow/sqrt/tanh ops and lowering to libm
authorBenjamin Kramer <benny.kra@googlemail.com>
Fri, 13 May 2022 15:12:11 +0000 (17:12 +0200)
committerBenjamin Kramer <benny.kra@googlemail.com>
Wed, 18 May 2022 12:03:14 +0000 (14:03 +0200)
commite497871356f2f7a42a508973960bf4f68dd4f7b8
treefa3ad9adf3c73eb664a299da35bbbe9a27d1c5da
parent21c29a8ae053cb436141ee636333c4f816cc20c4
[mlir][complex] Add pow/sqrt/tanh ops and lowering to libm

Lowering through libm gives us a baseline version, even though it's not
going to be particularly fast. This is similar to what we do for some
math dialect ops.

Differential Revision: https://reviews.llvm.org/D125550
mlir/include/mlir/Conversion/ComplexToLibm/ComplexToLibm.h [new file with mode: 0644]
mlir/include/mlir/Conversion/Passes.h
mlir/include/mlir/Conversion/Passes.td
mlir/include/mlir/Dialect/Complex/IR/ComplexOps.td
mlir/lib/Conversion/CMakeLists.txt
mlir/lib/Conversion/ComplexToLibm/CMakeLists.txt [new file with mode: 0644]
mlir/lib/Conversion/ComplexToLibm/ComplexToLibm.cpp [new file with mode: 0644]
mlir/test/Conversion/ComplexToLibm/convert-to-libm.mlir [new file with mode: 0644]
utils/bazel/llvm-project-overlay/mlir/BUILD.bazel