================
@@ -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
----------------
RiverDave wrote:
Huh also:
As you first highlighted ptr_sizes can also be tracked as LangAs?
``` cpp
// AddressSpaces.h
inline bool isPtrSizeAddressSpace(LangAS AS) {
return (AS == LangAS::ptr32_sptr || AS == LangAS::ptr32_uptr ||
AS == LangAS::ptr64);
}
```
https://github.com/llvm/llvm-project/pull/161028
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits