[clang] [clang][SPIRV] Default AS generic for Intel-flavored SPIR-V (PR #153647)

Nick Sarnie via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 25 07:18:03 PDT 2025


================
@@ -219,8 +219,11 @@ class LLVM_LIBRARY_VISIBILITY BaseSPIRTargetInfo : public TargetInfo {
     setAddressSpaceMap(
         /*DefaultIsGeneric=*/Opts.SYCLIsDevice ||
         // The address mapping from HIP/CUDA language for device code is only
-        // defined for SPIR-V.
-        (getTriple().isSPIRV() && Opts.CUDAIsDevice));
+        // defined for SPIR-V, and all Intel SPIR-V code should have the default
+        // AS as generic.
+        (getTriple().isSPIRV() &&
----------------
sarnex wrote:

Sorry, finally back from  vacation. Let me try this, if nothing breaks let's go with that.

https://github.com/llvm/llvm-project/pull/153647


More information about the cfe-commits mailing list