llvm/mlir/tools/mlir-opt
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
..
CMakeLists.txt [MLIR] Use MLIR_INCLUDE_TESTS to conditionally compile tests. 2020-05-18 18:47:37 +02:00
mlir-opt.cpp [mlir] Add support for lowering tanh to LLVMIR. 2020-06-18 10:42:13 -07:00