[clang] [CIR] Add constant record ILE support (PR #155663)

Andy Kaylor via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 27 16:13:51 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();
----------------
andykaylor wrote:

The bases are represented as members in the record.

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


More information about the cfe-commits mailing list