[llvm] [IR][AArch64] Add "ptrauth(...)" Constant to represent signed pointers. (PR #85738)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 19 04:25:13 PDT 2024
================
@@ -1154,6 +1154,9 @@ static ICmpInst::Predicate evaluateICmpRelation(Constant *V1, Constant *V2) {
GV->getType()->getAddressSpace()))
return ICmpInst::ICMP_UGT;
}
+ } else if (const ConstantPtrAuth *SP = dyn_cast<ConstantPtrAuth>(V1)) {
+ // FIXME: ahmedbougacha: implement ptrauth cst comparison
+ return ICmpInst::BAD_ICMP_PREDICATE;
----------------
nikic wrote:
Looking at this, I noticed that the existing code here is broken, fixed in https://github.com/llvm/llvm-project/commit/00ca80938b732ee43deb2a94bec1c7efef3025d4. With that, you probably don't need this placeholder to prevent crashes anymore.
https://github.com/llvm/llvm-project/pull/85738
More information about the llvm-commits
mailing list