[PATCH] D37052: Add default address space for functions to the data layout (1/3)
Bjorn Pettersson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 7 09:17:29 PST 2017
bjope added inline comments.
================
Comment at: lib/IR/DataLayout.cpp:417
bool DataLayout::operator==(const DataLayout &Other) const {
bool Ret = BigEndian == Other.BigEndian &&
----------------
I'm not exactly sure what the criteria is for this method (or how it is used).
But maybe the ProgramAddrSpace member should be compared as well?
PS. I'm trying to compare your solution with the solution we have in our out-of-tree target, and we have something similar to the ProgramAddrSpace member (we call it FunctionPointerAddressSpace and use 'F' instead of 'P'). As it happens we do not compare the FunctionPointerAddressSpace in this operator==, but I guess that is just something we forgot to add.
https://reviews.llvm.org/D37052
More information about the llvm-commits
mailing list