[all-commits] [llvm/llvm-project] aa939e: [SPIR-V] Avoid typed pointers for global variables...

Akhil Goel via All-commits all-commits at lists.llvm.org
Thu Jun 25 12:14:13 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: aa939e521d71407d5d653eb8fd6b5ce283e3e32c
      https://github.com/llvm/llvm-project/commit/aa939e521d71407d5d653eb8fd6b5ce283e3e32c
  Author: Akhil Goel <akhil.goel at intel.com>
  Date:   2026-06-25 (Thu, 25 Jun 2026)

  Changed paths:
    M llvm/lib/Target/SPIRV/SPIRVGlobalRegistry.cpp
    A llvm/test/CodeGen/SPIRV/pointers/global-vars-untyped.ll

  Log Message:
  -----------
  [SPIR-V] Avoid typed pointers for global variables (#201203)

This PR replaces typed pointers with opaque pointers for global variable
types. Since typed pointers are legal in SPIR-V, the type retrieved when
creating a global variable may be a typed pointer, causing it to leak
into the module. This will break the bitcode parsing of the serialized
module.



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