[llvm] [LLVM][IR] Add support for address space names in DataLayout (PR #170559)
Alexander Richardson via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 3 22:58:16 PST 2025
================
@@ -233,6 +231,15 @@ DataLayout &DataLayout::operator=(const DataLayout &Other) {
bool DataLayout::operator==(const DataLayout &Other) const {
// NOTE: StringRepresentation might differ, it is not canonicalized.
+ auto IsPointerSpecEqual = [this, &Other](const PointerSpec &A,
----------------
arichardson wrote:
Couldn't we just add the extra comparison to the existing operator==?
https://github.com/llvm/llvm-project/pull/170559
More information about the llvm-commits
mailing list