Add tanh lowering from Standard dialect to NVVM and ROCDL.
authorJulian Gross <julian.gross@dfki.de>
Mon, 27 Jan 2020 13:59:49 +0000 (14:59 +0100)
committerJulian Gross <julian.gross@dfki.de>
Tue, 28 Jan 2020 10:01:10 +0000 (11:01 +0100)
commit664d2f5bad3eeef5e7cd59492937d1c34feb8642
tree23c2e7054fcb7bf14dcd8fa4f50f67ec2fc7b9ad
parent92600c2ec83233f897b306f8c20986f0055edf8b
Add tanh lowering from Standard dialect to NVVM and ROCDL.

Summary:
The tanh lowering from Standard dialect to NVVM and ROCDL was not working.
The conversion pattern are inserted in the lowering files.
The test cases for the lowerings were added in the test files.

Reviewers: nicolasvasilache, ftynse, herhut

Reviewed By: ftynse, herhut

Subscribers: merge_guards_bot, ftynse, jholewinski, mehdi_amini, rriddle, jpienaar, burmako, shauheen, antiagainst, csigg, arpith-jacob, mgester, lucyrfox, herhut, liufengdb, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D73471
mlir/lib/Conversion/GPUToNVVM/LowerGpuOpsToNVVMOps.cpp
mlir/lib/Conversion/GPUToROCDL/LowerGpuOpsToROCDLOps.cpp
mlir/test/Conversion/GPUToNVVM/gpu-to-nvvm.mlir
mlir/test/Conversion/GPUToROCDL/gpu-to-rocdl.mlir