[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:48 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);
+
+ if (auto *V1Cast = dyn_cast<PtrToIntOperator>(V1))
----------------
nikic wrote:
Does ptrtoint occur here if the other side is a ptrauth.blend?
https://github.com/llvm/llvm-project/pull/85738
More information about the llvm-commits
mailing list