[all-commits] [llvm/llvm-project] 343186: [clang][SPIRV] Set program address space for Intel...
Nick Sarnie via All-commits
all-commits at lists.llvm.org
Thu Sep 11 07:25:02 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 343186deefcafdcf4e5a63e669a8ddc7ec9fd415
https://github.com/llvm/llvm-project/commit/343186deefcafdcf4e5a63e669a8ddc7ec9fd415
Author: Nick Sarnie <nick.sarnie at intel.com>
Date: 2025-09-11 (Thu, 11 Sep 2025)
Changed paths:
M clang/lib/Basic/Targets.cpp
M clang/lib/Basic/Targets/SPIR.h
M clang/test/CodeGenSPIRV/spirv-intel.c
M clang/test/OpenMP/spirv_variant_match.cpp
M llvm/lib/Target/SPIRV/SPIRVSubtarget.cpp
M llvm/lib/Target/SPIRV/SPIRVTargetMachine.cpp
Log Message:
-----------
[clang][SPIRV] Set program address space for Intel-flavored SPIR-V (#135251)
Technically, SPIR-V should use addrspace(4) for generic pointers.
We already set the default AS in TargetInfo to 4, but that's not enough
for all cases. Also set the program address space to 4 to fix the
remaining cases. AMD already does this for their SPIR-V target, do it
for Intel's SPIR-V target.
I need this for OpenMP offloading to SPIR-V. There are a couple of
places I need to change in the OMP FE to check the program AS, I'll do
that in a follow-up PR.
---------
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