[clang] [clang] model WASM alloca addrspaces in Sema (PR #197540)

Matt Arsenault via cfe-commits cfe-commits at lists.llvm.org
Thu May 14 02:51:08 PDT 2026


================
@@ -213,7 +215,10 @@ class LLVM_LIBRARY_VISIBILITY BaseSPIRTargetInfo : public TargetInfo {
   }
 
   void setAddressSpaceMap(bool DefaultIsGeneric) {
-    AddrSpaceMap = DefaultIsGeneric ? &SPIRDefIsGenMap : &SPIRDefIsPrivMap;
+    if (DefaultIsGeneric)
+      AddrSpaceMap = &SPIRDefIsGenMap;
+    else
+      AddrSpaceMap = &SPIRDefIsPrivMap;
----------------
arsenm wrote:

Actually, can de finally be rid of this DefaultIsGeneric mode switch with the recent address space changes? This is because OpenCL 1.x was never implemented properly 

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


More information about the cfe-commits mailing list