OSDN Git Service

[mlir][spirv] Define spv.GLSL.Fma and add lowerings
authorLei Zhang <antiagainst@google.com>
Tue, 19 Jan 2021 14:13:44 +0000 (09:13 -0500)
committerLei Zhang <antiagainst@google.com>
Tue, 19 Jan 2021 14:14:21 +0000 (09:14 -0500)
commit3a56a96664de955888d63c49a33808e3a1a294d9
tree784658d825a175a01e0af1384c4e121c6acf5257
parent6259fbd8b69531133d24b5367a6a2cd9b183ce48
[mlir][spirv] Define spv.GLSL.Fma and add lowerings

Also changes some rewriter.create + rewriter.replaceOp calls
into rewriter.replaceOpWithNewOp calls.

Reviewed By: hanchung

Differential Revision: https://reviews.llvm.org/D94965
mlir/include/mlir/Dialect/SPIRV/IR/SPIRVGLSLOps.td
mlir/lib/Conversion/VectorToSPIRV/VectorToSPIRV.cpp
mlir/test/Conversion/VectorToSPIRV/simple.mlir
mlir/test/Dialect/SPIRV/IR/glsl-ops.mlir
mlir/test/Target/SPIRV/glsl-ops.mlir