[mlir][spirv] Split op implementation file into subfiles. NFC.
authorJakub Kuderski <kubak@google.com>
Wed, 19 Jul 2023 20:48:46 +0000 (16:48 -0400)
committerJakub Kuderski <kubak@google.com>
Wed, 19 Jul 2023 20:48:47 +0000 (16:48 -0400)
commit9415241c5ba700379d67006391e50204df4f32f4
treee7aed58facb21f5213e553907fdb45f0f153b8a9
parent287030384c90d705fbdb2112cfaf39d1497d23f5
[mlir][spirv] Split op implementation file into subfiles. NFC.

The main op implementation file for SPIR-V grew past 5k LOC. This makes it
take a long time to compile and index with LSPs like clangd.

Pull out the first few SPIR-V extension ops into their own `.cpp` files,
just like we do with `.td` op definitions. This includes the
KHR/NV/Intel coop matrix and the integer dot prod extensions.

I plan to further split this in future revisions.

Reviewed By: antiagainst

Differential Revision: https://reviews.llvm.org/D155747
mlir/include/mlir/Dialect/SPIRV/IR/ParserUtils.h [deleted file]
mlir/lib/Dialect/SPIRV/IR/CMakeLists.txt
mlir/lib/Dialect/SPIRV/IR/CooperativeMatrixOps.cpp [new file with mode: 0644]
mlir/lib/Dialect/SPIRV/IR/IntegerDotProductOps.cpp [new file with mode: 0644]
mlir/lib/Dialect/SPIRV/IR/JointMatrixOps.cpp [new file with mode: 0644]
mlir/lib/Dialect/SPIRV/IR/SPIRVDialect.cpp
mlir/lib/Dialect/SPIRV/IR/SPIRVOpUtils.h [new file with mode: 0644]
mlir/lib/Dialect/SPIRV/IR/SPIRVOps.cpp
mlir/lib/Dialect/SPIRV/IR/SPIRVParsingUtils.cpp [new file with mode: 0644]
mlir/lib/Dialect/SPIRV/IR/SPIRVParsingUtils.h [new file with mode: 0644]