[MLIR][SPIRVToLLVM] Conversion patterns for GLSL ops
authorGeorge Mitenkov <georgemitenk0v@gmail.com>
Thu, 30 Jul 2020 06:22:44 +0000 (09:22 +0300)
committerGeorge Mitenkov <georgemitenk0v@gmail.com>
Thu, 30 Jul 2020 07:20:11 +0000 (10:20 +0300)
commit647e9a54c758a6fdd85a569f019f00a653b2bc40
treecd3580b3ff67719b8d098f0160eb9762cd26a408
parentcd4e8d7f6f5ef108919f9f53db35ac73d1edea3d
[MLIR][SPIRVToLLVM] Conversion patterns for GLSL ops

This is the first patch that adds support for GLSL extended
instruction set ops. These are direct conversions, apart from `spv.Tan`
that is lowered to `sin() / cos()`.

Reviewed By: antiagainst

Differential Revision: https://reviews.llvm.org/D84627
mlir/lib/Conversion/SPIRVToLLVM/ConvertSPIRVToLLVM.cpp
mlir/test/Conversion/SPIRVToLLVM/glsl-ops-to-llvm.mlir [new file with mode: 0644]