[mlir] Add support for ExpM1 to GLSL/OpenCL SPIRV Backends
authorRob Suderman <rob.suderman@gmail.com>
Mon, 24 Jan 2022 23:38:30 +0000 (15:38 -0800)
committerRob Suderman <rob.suderman@gmail.com>
Mon, 24 Jan 2022 23:38:34 +0000 (15:38 -0800)
commit3e746c6d9ef0758c1e06901a99a75b638d6a5655
tree19231ebea37e51b81899ccdc00b638cefcf267bd
parent3628febcf8e3d88db5871c9f82a33ab98611e5a8
[mlir] Add support for ExpM1 to GLSL/OpenCL SPIRV Backends

Adding a similar decomposition for exponential minus one to the SPIRV
backends along with the necessary tests.

Reviewed By: antiagainst

Differential Revision: https://reviews.llvm.org/D118081
mlir/lib/Conversion/MathToSPIRV/MathToSPIRV.cpp
mlir/test/Conversion/MathToSPIRV/math-to-glsl-spirv.mlir
mlir/test/Conversion/MathToSPIRV/math-to-opencl-spirv.mlir