Files
clang-p2996/mlir/lib/Dialect/StandardOps/Transforms/CMakeLists.txt
Hanhan Wang 9cb10296ec [mlir] Add support for lowering tanh to LLVMIR.
Summary:
Fixed build of D81618

Add a pattern for expanding tanh op into exp form.
A `tanh` is expanded into:
   1) 1-exp^{-2x} / 1+exp^{-2x}, if x => 0
   2) exp^{2x}-1 / exp^{2x}+1  , if x < 0.

Differential Revision: https://reviews.llvm.org/D82040
2020-06-18 10:42:13 -07:00

18 lines
319 B
CMake

add_mlir_dialect_library(MLIRStandardOpsTransforms
ExpandAtomic.cpp
ExpandTanh.cpp
FuncConversions.cpp
ADDITIONAL_HEADER_DIRS
${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/StandardOps/Transforms
DEPENDS
MLIRStandardTransformsIncGen
LINK_LIBS PUBLIC
MLIRIR
MLIRPass
MLIRStandardOps
MLIRTransforms
)