[all-commits] [llvm/llvm-project] 0e3f55: [SPIR-V] Simplify addrspacecast for null in compos...

Arseniy Obolenskiy via All-commits all-commits at lists.llvm.org
Thu Apr 16 07:06:11 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0e3f5504beb0e4ac918f6934fdc7cbf847014e9d
      https://github.com/llvm/llvm-project/commit/0e3f5504beb0e4ac918f6934fdc7cbf847014e9d
  Author: Arseniy Obolenskiy <arseniy.obolenskiy at amd.com>
  Date:   2026-04-16 (Thu, 16 Apr 2026)

  Changed paths:
    M llvm/lib/Target/SPIRV/SPIRVEmitIntrinsics.cpp
    M llvm/test/CodeGen/SPIRV/extensions/SPV_INTEL_function_pointers/fun-ptr-addrcast.ll
    M llvm/test/CodeGen/SPIRV/opencl/device_execution/execute_block.ll
    M llvm/test/CodeGen/SPIRV/pointers/PtrCast-null-in-OpSpecConstantOp.ll
    A llvm/test/CodeGen/SPIRV/struct-null-pointer-member.ll

  Log Message:
  -----------
  [SPIR-V] Simplify addrspacecast for null in composite constant preprocessing (#192030)

Fold addrspacecast(null) to a typed null pointer during composite
constant preprocessing so that null pointer members in structs and
arrays get the correct SPIR-V pointer type instead of being lowered as
integers. This fixes invalid SPIR-V where OpConstantNull had an integer
type instead of a pointer type, and where OpSpecConstantOp was
unnecessarily emitted for null casts

related to https://github.com/llvm/llvm-project/issues/190736



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