[clang] [CIR] Upstream `AddressSpace` support for `PointerType` (PR #161028)

Andy Kaylor via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 1 15:14:29 PDT 2025


================
@@ -73,13 +74,17 @@ struct CIRGenTypeCache {
   /// The alignment of size_t.
   unsigned char SizeAlignInBytes;
 
+  LangAS ASTAllocaAddressSpace;
----------------
andykaylor wrote:

```suggestion
  cir::TargetAddressSpaceAttr cirAllocaAddressSpace;
```
We can change the type of this to `mlir::Attribute` when support for two kinds of address space attributes is added, but for now, let's make it specific.

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


More information about the cfe-commits mailing list