[all-commits] [llvm/llvm-project] 4b7aa6: [mlir][spirv] Enhance structure type member decora...
HazemAbdelhafez via All-commits
all-commits at lists.llvm.org
Wed Jun 10 16:25:28 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 4b7aa6c8c1b0f68c6800225b39b3b389adf31332
https://github.com/llvm/llvm-project/commit/4b7aa6c8c1b0f68c6800225b39b3b389adf31332
Author: HazemAbdelhafez <23439402+HazemAbdelhafez at users.noreply.github.com>
Date: 2020-06-10 (Wed, 10 Jun 2020)
Changed paths:
M mlir/include/mlir/Dialect/SPIRV/SPIRVTypes.h
M mlir/include/mlir/IR/DialectImplementation.h
M mlir/lib/Dialect/SPIRV/LayoutUtils.cpp
M mlir/lib/Dialect/SPIRV/SPIRVDialect.cpp
M mlir/lib/Dialect/SPIRV/SPIRVTypes.cpp
M mlir/lib/Dialect/SPIRV/Serialization/Deserializer.cpp
M mlir/lib/Dialect/SPIRV/Serialization/Serializer.cpp
M mlir/lib/Parser/Parser.cpp
M mlir/test/Dialect/SPIRV/Serialization/struct.mlir
M mlir/test/Dialect/SPIRV/types.mlir
M mlir/unittests/Dialect/SPIRV/SerializationTest.cpp
Log Message:
-----------
[mlir][spirv] Enhance structure type member decoration handling
Modify structure type in SPIR-V dialect to support:
1) Multiple decorations per structure member
2) Key-value based decorations (e.g., MatrixStride)
This commit kept the Offset decoration separate from members'
decorations container for easier implementation and logical clarity.
As such, all references to Structure layoutinfo are now offsetinfo,
and any member layout defining decoration (e.g., RowMajor for Matrix)
will be add to the members' decorations container along with its
value if any.
Differential Revision: https://reviews.llvm.org/D81426
More information about the All-commits
mailing list