[all-commits] [llvm/llvm-project] 47e953: [mlir][spirv] Support attribute in MapMemRefStorag...

Lei Zhang via All-commits all-commits at lists.llvm.org
Thu Nov 17 20:56:15 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 47e953e913ed6108cdb8badf4b0090f51b9e535f
      https://github.com/llvm/llvm-project/commit/47e953e913ed6108cdb8badf4b0090f51b9e535f
  Author: Lei Zhang <antiagainst at google.com>
  Date:   2022-11-17 (Thu, 17 Nov 2022)

  Changed paths:
    M mlir/include/mlir/Conversion/MemRefToSPIRV/MemRefToSPIRV.h
    M mlir/lib/Conversion/MemRefToSPIRV/MapMemRefStorageClassPass.cpp

  Log Message:
  -----------
  [mlir][spirv] Support attribute in MapMemRefStorageClassPass

MemRef memory space actually can be an attribute. Update the
map function signature to accept an attribute. The default
mappings can still only covers numeric ones, but this allows
downstream callers to extend with custom memory spaces.

Reviewed By: kuhar

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




More information about the All-commits mailing list