[llvm-branch-commits] [clang] [CIR] Address Space support for GlobalOps (PR #179082)

Konstantinos Parasyris via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Feb 17 09:11:58 PST 2026


================
@@ -728,6 +764,9 @@ CIRGenModule::getOrCreateCIRGlobal(StringRef mangledName, mlir::Type ty,
       return entry;
   }
 
+  mlir::ptr::MemorySpaceAttrInterface declCIRAS = cir::toCIRAddressSpaceAttr(
+      &getMLIRContext(), getGlobalVarAddressSpace(d));
----------------
koparasy wrote:

NIT: I would move this closer to the use of `declCIRAS`

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


More information about the llvm-branch-commits mailing list