[MLIR][SPIRV] Refactoring serialization and deserialization
authorergawy <kareem.ergawy@gmail.com>
Mon, 14 Dec 2020 16:40:34 +0000 (11:40 -0500)
committerLei Zhang <antiagainst@google.com>
Mon, 14 Dec 2020 17:28:16 +0000 (12:28 -0500)
commitecab63894bb5aebcbbe694839779f346e6fbe9e2
treec863b82036d2efae4d66ce28b05a289f6efb5624
parent68f53960e17d93c3a2727164dac4e54140bd98ba
[MLIR][SPIRV] Refactoring serialization and deserialization

This commit splits SPIR-V's serialization and deserialization code
into separate libraries. The motiviation being that the serializer
is used more often the deserializer and therefore lumping them
together unnecessarily increases binary size for the most common
case.

This commit also moves these libraries into the Target/ directory
to follow MLIR convention.

Reviewed By: antiagainst

Differential Revision: https://reviews.llvm.org/D91548
20 files changed:
mlir/include/mlir/Dialect/SPIRV/SPIRVBinaryUtils.h [deleted file]
mlir/include/mlir/Dialect/SPIRV/Serialization.h [deleted file]
mlir/include/mlir/Target/SPIRV/Deserialization.h [new file with mode: 0644]
mlir/include/mlir/Target/SPIRV/SPIRVBinaryUtils.h [new file with mode: 0644]
mlir/include/mlir/Target/SPIRV/Serialization.h [new file with mode: 0644]
mlir/lib/Conversion/GPUToVulkan/ConvertGPULaunchFuncToVulkanLaunchFunc.cpp
mlir/lib/Dialect/SPIRV/CMakeLists.txt
mlir/lib/Dialect/SPIRV/Serialization/CMakeLists.txt [deleted file]
mlir/lib/Dialect/SPIRV/Serialization/Deserializer.cpp [deleted file]
mlir/lib/Dialect/SPIRV/Serialization/SPIRVBinaryUtils.cpp [deleted file]
mlir/lib/Dialect/SPIRV/Serialization/Serializer.cpp [deleted file]
mlir/lib/Dialect/SPIRV/Serialization/TranslateRegistration.cpp [deleted file]
mlir/lib/Target/CMakeLists.txt
mlir/lib/Target/SPIRV/Deserialization.cpp [new file with mode: 0644]
mlir/lib/Target/SPIRV/SPIRVBinaryUtils.cpp [new file with mode: 0644]
mlir/lib/Target/SPIRV/Serialization.cpp [new file with mode: 0644]
mlir/lib/Target/SPIRV/TranslateRegistration.cpp [new file with mode: 0644]
mlir/unittests/Dialect/SPIRV/CMakeLists.txt
mlir/unittests/Dialect/SPIRV/DeserializationTest.cpp
mlir/unittests/Dialect/SPIRV/SerializationTest.cpp