[all-commits] [llvm/llvm-project] 03203b: [SPIR-V] Fix vloadn OpenCL builtin lowering (#81148)

Michal Paszkowski via All-commits all-commits at lists.llvm.org
Tue Feb 20 20:04:15 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 03203b79c6247465850ee6e9f3e2399afc35720b
      https://github.com/llvm/llvm-project/commit/03203b79c6247465850ee6e9f3e2399afc35720b
  Author: Michal Paszkowski <michal at paszkowski.org>
  Date:   2024-02-20 (Tue, 20 Feb 2024)

  Changed paths:
    M llvm/lib/Target/SPIRV/SPIRVBuiltins.cpp
    M llvm/lib/Target/SPIRV/SPIRVBuiltins.td
    M llvm/lib/Target/SPIRV/SPIRVEmitIntrinsics.cpp
    R llvm/test/CodeGen/SPIRV/opencl/basic/vstore_private.ll
    A llvm/test/CodeGen/SPIRV/opencl/vload2.ll
    A llvm/test/CodeGen/SPIRV/pointers/getelementptr-kernel-arg-char.ll

  Log Message:
  -----------
  [SPIR-V] Fix vloadn OpenCL builtin lowering (#81148)

This pull request fixes an issue with missing vector element count
immediate in OpExtInst calls and adds a case for generating bitcasts
before GEPs for kernel arguments of non-matching pointer type. The new
LITs are based on basic/vload_local and basic/vload_global OpenCL CTS
tests. The tests after this change pass SPIR-V validation.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list