[all-commits] [llvm/llvm-project] d7e6f1: [mlir][spirv] Enhance structure type member decora...

HazemAbdelhafez via All-commits all-commits at lists.llvm.org
Fri Jun 12 14:57:49 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: d7e6f116f4517952fbdf5ad4b5ff67e378600c60
      https://github.com/llvm/llvm-project/commit/d7e6f116f4517952fbdf5ad4b5ff67e378600c60
  Author: HazemAbdelhafez <23439402+HazemAbdelhafez at users.noreply.github.com>
  Date:   2020-06-12 (Fri, 12 Jun 2020)

  Changed paths:
    M mlir/include/mlir/Dialect/SPIRV/SPIRVTypes.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/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