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

Bruno Cardoso Lopes via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 3 11:51:13 PDT 2025


================
@@ -297,6 +317,20 @@ bool RecordType::isLayoutIdentical(const RecordType &other) {
 // Data Layout information for types
 //===----------------------------------------------------------------------===//
 
+llvm::TypeSize
+PointerType::getTypeSizeInBits(const ::mlir::DataLayout &dataLayout,
+                               ::mlir::DataLayoutEntryListRef params) const {
+  // FIXME: improve this in face of address spaces
----------------
bcardosolopes wrote:

Thanks for adding the assert!

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


More information about the cfe-commits mailing list