[clang] [CIR] Add constant record ILE support (PR #155663)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 27 10:55:38 PDT 2025
================
@@ -283,6 +283,16 @@ Type RecordType::getLargestMember(const ::mlir::DataLayout &dataLayout) const {
});
}
+bool RecordType::isLayoutIdentical(const RecordType &other) {
+ if (getImpl() == other.getImpl())
+ return true;
+
+ if (getPacked() != other.getPacked())
+ return false;
+
+ return getMembers() == other.getMembers();
----------------
erichkeane wrote:
IS this enough? The bases don't matter here?
https://github.com/llvm/llvm-project/pull/155663
More information about the cfe-commits
mailing list