[MLIR][SPIRVToLLVM] Conversion for inverse sqrt and tanh
authorGeorge Mitenkov <georgemitenk0v@gmail.com>
Thu, 30 Jul 2020 07:24:10 +0000 (10:24 +0300)
committerGeorge Mitenkov <georgemitenk0v@gmail.com>
Thu, 30 Jul 2020 07:50:48 +0000 (10:50 +0300)
commit3aab320557e7441bc2ce0b51fd6d82838fd0d484
tree7efb719a955541b2bb19df20dde675cdd571430b
parent1745ba41b196d80d8a6739dffcbb6f613d371f29
[MLIR][SPIRVToLLVM] Conversion for inverse sqrt and tanh

This is a second patch on conversion of GLSL ops to LLVM dialect.
It introduces patterns to convert `spv.InverseSqrt` and `spv.Tanh`.

Reviewed By: antiagainst

Differential Revision: https://reviews.llvm.org/D84633
mlir/lib/Conversion/SPIRVToLLVM/ConvertSPIRVToLLVM.cpp
mlir/test/Conversion/SPIRVToLLVM/glsl-ops-to-llvm.mlir