diff options
author | Hanhan Wang <hanchung@google.com> | 2020-06-15 10:26:32 -0700 |
---|---|---|
committer | Hanhan Wang <hanchung@google.com> | 2020-06-15 10:29:31 -0700 |
commit | 32c757e4f808c68a7e34eb712fead0a49cdf814a (patch) | |
tree | ce19ca33a46ddae4bc6b13dcced6ba2af49b72ec /lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp | |
parent | 498dd745f55b1d38e6648f425dd9c0a42c52a4cf (diff) | |
download | llvm-32c757e4f808c68a7e34eb712fead0a49cdf814a.zip llvm-32c757e4f808c68a7e34eb712fead0a49cdf814a.tar.gz llvm-32c757e4f808c68a7e34eb712fead0a49cdf814a.tar.bz2 |
[mlir] Add support for lowering tanh to LLVMIR.
Summary:
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/D81618
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp')
0 files changed, 0 insertions, 0 deletions