[all-commits] [llvm/llvm-project] cfb955: [mlir][spirv] Relax restriction on pointer type fo...

Thomas via All-commits all-commits at lists.llvm.org
Fri Jul 31 08:16:44 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: cfb955ac370cb724c51423a05694aaf5b70903a4
      https://github.com/llvm/llvm-project/commit/cfb955ac370cb724c51423a05694aaf5b70903a4
  Author: Thomas Raoux <thomasraoux at google.com>
  Date:   2020-07-31 (Fri, 31 Jul 2020)

  Changed paths:
    M mlir/include/mlir/Dialect/SPIRV/SPIRVCooperativeMatrixOps.td
    M mlir/lib/Dialect/SPIRV/SPIRVOps.cpp
    M mlir/test/Dialect/SPIRV/Serialization/cooperative-matrix.mlir
    M mlir/test/Dialect/SPIRV/cooperative-matrix.mlir

  Log Message:
  -----------
  [mlir][spirv] Relax restriction on pointer type for CooperativeMatrix load/store

This change allow CooperativeMatrix Load/Store operations to use pointer type
that may not match the matrix element type. This allow us to declare buffer
with a larger type size than the matrix element type. This follows SPIR-V spec
and this is needed to be able to use cooperative matrix in combination with
shared local memory efficiently.

Differential Revision: https://reviews.llvm.org/D84993




More information about the All-commits mailing list