[llvm] [PAC][IR][AArch64] Add "ptrauth(...)" Constant to represent signed pointers. (PR #85738)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Wed May 8 18:21:49 PDT 2024
================
@@ -2015,6 +2018,113 @@ Value *NoCFIValue::handleOperandChangeImpl(Value *From, Value *To) {
return nullptr;
}
+//---- ConstantPtrAuth::get() implementations.
+//
+
+static bool areEquivalentAddrDiscriminators(const Value *V1, const Value *V2,
+ const DataLayout &DL) {
+ APInt Off1(DL.getTypeSizeInBits(V1->getType()), 0);
+ APInt Off2(DL.getTypeSizeInBits(V2->getType()), 0);
----------------
nikic wrote:
Should use the pointer index size here.
https://github.com/llvm/llvm-project/pull/85738
More information about the llvm-commits
mailing list