[llvm] [PAC][IR][AArch64] Add "ptrauth(...)" Constant to represent signed pointers. (PR #85738)
Ahmed Bougacha via llvm-commits
llvm-commits at lists.llvm.org
Wed May 8 10:40:06 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;
----------------
ahmedbougacha wrote:
Oh, nice, thanks; this deserves to be covered regardless, and the previous (non-Constant) iteration had some logic here, but let's do that separately.
https://github.com/llvm/llvm-project/pull/85738
More information about the llvm-commits
mailing list