[all-commits] [llvm/llvm-project] 1258c3: [mlir][spirv] Support `spirv.coopmatrix` type (de-...

Jakub Kuderski via All-commits all-commits at lists.llvm.org
Mon Sep 11 09:23:31 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1258c3f214d7f91d34233c94c1e651158713933b
      https://github.com/llvm/llvm-project/commit/1258c3f214d7f91d34233c94c1e651158713933b
  Author: Jakub Kuderski <jakub at nod-labs.com>
  Date:   2023-09-11 (Mon, 11 Sep 2023)

  Changed paths:
    M mlir/include/mlir/Dialect/SPIRV/IR/SPIRVBase.td
    M mlir/include/mlir/Dialect/SPIRV/IR/SPIRVCooperativeMatrixOps.td
    M mlir/lib/Dialect/SPIRV/IR/CooperativeMatrixOps.cpp
    M mlir/lib/Target/SPIRV/Deserialization/DeserializeOps.cpp
    M mlir/lib/Target/SPIRV/Deserialization/Deserializer.cpp
    M mlir/lib/Target/SPIRV/Deserialization/Deserializer.h
    M mlir/lib/Target/SPIRV/Serialization/Serializer.cpp
    M mlir/test/Dialect/SPIRV/IR/cooperative-matrix-ops.mlir
    R mlir/test/Target/SPIRV/cooperative-matrix-ops.mlir
    A mlir/test/Target/SPIRV/khr-cooperative-matrix-ops.mlir
    A mlir/test/Target/SPIRV/nv-cooperative-matrix-ops.mlir
    M mlir/tools/mlir-tblgen/SPIRVUtilsGen.cpp

  Log Message:
  -----------
  [mlir][spirv] Support `spirv.coopmatrix` type (de-)serialization (#65831)

Extend SPIR-V target serialization and deserialization to handle coop
matrix types. Add a roundtrip test. In addition to `FileCheck` checks,
the resulting spirv binary also passes `spir-val` (external tool).

Also fix a type attribute bug surfaced by the `CooperativeMatrixLength`
op.

Multiple matrix operand attributes will be handled in a future patch to
reduce the scope.




More information about the All-commits mailing list