[clang] [CIR][HIP][SPIR-V] Emit constant globals in addrspace(1) (PR #230813)

Steffen Larsen via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 12 00:34:31 PDT 2026


================
@@ -470,6 +470,8 @@ class CIRGenModule : public CIRGenTypeCache {
   /// space, which may lead to type mismatches in other parts of the IR.
   LangAS getLangTempAllocaAddressSpace() const;
 
+  mlir::ptr::MemorySpaceAttrInterface getGlobalCIRAddressSpace(LangAS as);
----------------
steffenlarsen wrote:

Small doc comment would be good.

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


More information about the cfe-commits mailing list