[all-commits] [llvm/llvm-project] f45e6a: [SPIR-V] Fix emit intrinsic for resource type (#15...

Nathan Gauër via All-commits all-commits at lists.llvm.org
Thu Jul 24 07:45:56 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f45e6a2834b4e7a9128b93702821a4ae944ed57b
      https://github.com/llvm/llvm-project/commit/f45e6a2834b4e7a9128b93702821a4ae944ed57b
  Author: Nathan Gauër <brioche at google.com>
  Date:   2025-07-24 (Thu, 24 Jul 2025)

  Changed paths:
    M llvm/lib/Target/SPIRV/SPIRVEmitIntrinsics.cpp
    A llvm/test/CodeGen/SPIRV/pointers/resource-vector-load-store.ll

  Log Message:
  -----------
  [SPIR-V] Fix emit intrinsic for resource type (#150224)

This is a quick fix to make progress to the backend until we get a
proper type scavenging system.
The previous code was only checking the type if the resource was used
once. Slightly changed the code to look to all usages, and get the first
type.

This will certainly break in other cases, but it allows us to move
forward for now until we rewrite the type scavenging to handle untyped
GEP/ptradd correctly.

Related to #145002



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