[MLIR][SPIRV] Add support for OpCopyMemory.
authorergawy <kareem.ergawy@gmail.com>
Fri, 26 Jun 2020 13:37:30 +0000 (09:37 -0400)
committerLei Zhang <antiagainst@google.com>
Fri, 26 Jun 2020 13:43:53 +0000 (09:43 -0400)
commitd6485ed3a7701364650bffabcbc277733f37eaa7
treecabeac0d0980754d07154bc930fda215ac10a542
parent652a79659a89b3634f34c6cf94a0b18b25ea4419
[MLIR][SPIRV] Add support for OpCopyMemory.

This patch add support for 'spv.CopyMemory'. The following changes are
introduced:
- 'CopyMemory' op is added to SPIRVOps.td.
- Custom parse and print methods are introduced.
- A few Roundtripping tests are added.

Differential Revision: https://reviews.llvm.org/D82384
mlir/include/mlir/Dialect/SPIRV/SPIRVBase.td
mlir/include/mlir/Dialect/SPIRV/SPIRVOps.td
mlir/lib/Dialect/SPIRV/SPIRVOps.cpp
mlir/test/Dialect/SPIRV/Serialization/memory-ops.mlir
mlir/test/Dialect/SPIRV/ops.mlir