[all-commits] [llvm/llvm-project] 48378a: [spirv] Fix bitwidth emulation for Workgroup stora...

Lei Zhang via All-commits all-commits at lists.llvm.org
Wed Aug 5 11:44:24 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 48378a32af54af6ae656a3db14dc7c0d975d0f48
      https://github.com/llvm/llvm-project/commit/48378a32af54af6ae656a3db14dc7c0d975d0f48
  Author: Lei Zhang <antiagainst at google.com>
  Date:   2020-08-05 (Wed, 05 Aug 2020)

  Changed paths:
    M mlir/lib/Dialect/SPIRV/SPIRVTypes.cpp
    M mlir/test/Conversion/StandardToSPIRV/alloc.mlir

  Log Message:
  -----------
  [spirv] Fix bitwidth emulation for Workgroup storage class

If Int16 is not available, 16-bit integers inside Workgroup storage
class should be emulated via 32-bit integers. This was previously
broken because the capability querying logic was incorrectly
intercepting all storage classes where it meant to only handle
interface storage classes. Adjusted where we return to fix this.

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




More information about the All-commits mailing list