[mlir][spirv] Extract Atomic/Cast/Group op implementation. NFC.
authorJakub Kuderski <kubak@google.com>
Thu, 20 Jul 2023 15:13:51 +0000 (11:13 -0400)
committerJakub Kuderski <kubak@google.com>
Thu, 20 Jul 2023 15:15:30 +0000 (11:15 -0400)
commitab6827f2d4321ea673ad156be713e345ef354ea0
tree81ba252f329f8e56e58c32055a95a9b8dfdd969c
parent8dacf55af4fe320befb325ad93dd76c4c50c03e9
[mlir][spirv] Extract Atomic/Cast/Group op implementation. NFC.

Continue to work outlined in D155747 and split the main SPIR-V ops
implementation file into a few smaller and quicker to compile files.
This organization matches the op definition organizaion in `.td` files.

In this patch, extract atomic, cast/conversion, and group op
implementation into separate files.

Reviewed By: antiagainst

Differential Revision: https://reviews.llvm.org/D155777
mlir/include/mlir/Dialect/SPIRV/IR/SPIRVCastOps.td
mlir/lib/Dialect/SPIRV/IR/AtomicOps.cpp [new file with mode: 0644]
mlir/lib/Dialect/SPIRV/IR/CMakeLists.txt
mlir/lib/Dialect/SPIRV/IR/CastOps.cpp [new file with mode: 0644]
mlir/lib/Dialect/SPIRV/IR/GroupOps.cpp [new file with mode: 0644]
mlir/lib/Dialect/SPIRV/IR/SPIRVOpUtils.h
mlir/lib/Dialect/SPIRV/IR/SPIRVOps.cpp