[all-commits] [llvm/llvm-project] 9a4c76: [mlir][spirv] Respect client API requirements for ...

Lei Zhang via All-commits all-commits at lists.llvm.org
Sun Feb 26 22:22:45 PST 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9a4c768a7d83158d225a2c9baa82ee5d827fb726
  Author: Lei Zhang <antiagainst at google.com>
  Date:   2023-02-27 (Mon, 27 Feb 2023)

  Changed paths:
    M mlir/lib/Conversion/GPUToSPIRV/GPUToSPIRV.cpp
    M mlir/test/Conversion/GPUToSPIRV/builtins.mlir

  Log Message:
  [mlir][spirv] Respect client API requirements for 64-bit index

Vulkan requires GPU processor ID/count builtin variables to be
32-bit scalar or vector for all the cases. Similarly there
are special requirements for OpenCL. We need to make sure those
rules are respected when converting using 64bit for index.

Reviewed By: kuhar

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

More information about the All-commits mailing list