[all-commits] [llvm/llvm-project] 68ee56: [clang][OpenMP][SPIR-V] Fix addrspace of global co...

Nick Sarnie via All-commits all-commits at lists.llvm.org
Wed Apr 9 08:42:14 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 68ee56d15020b4fa7f3c5443b4be6504481957d4
      https://github.com/llvm/llvm-project/commit/68ee56d15020b4fa7f3c5443b4be6504481957d4
  Author: Nick Sarnie <nick.sarnie at intel.com>
  Date:   2025-04-09 (Wed, 09 Apr 2025)

  Changed paths:
    M clang/lib/Basic/Targets/SPIR.h
    M llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp

  Log Message:
  -----------
  [clang][OpenMP][SPIR-V] Fix addrspace of global constants (#134399)

SPIR-V has strict address space rules, constant globals cannot be in the
default address space.

The OMPIRBuilder change was required for lit tests to pass, we were
missing an addrspacecast.

---------

Signed-off-by: Sarnie, Nick <nick.sarnie at intel.com>



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