Lines Matching refs:ICmpInst
44 unsigned llvm::getICmpCode(const ICmpInst *ICI, bool InvertPred) {
45 ICmpInst::Predicate Pred = InvertPred ? ICI->getInversePredicate()
49 case ICmpInst::ICMP_UGT: return 1; // 001
50 case ICmpInst::ICMP_SGT: return 1; // 001
51 case ICmpInst::ICMP_EQ: return 2; // 010
52 case ICmpInst::ICMP_UGE: return 3; // 011
53 case ICmpInst::ICMP_SGE: return 3; // 011
54 case ICmpInst::ICMP_ULT: return 4; // 100
55 case ICmpInst::ICMP_SLT: return 4; // 100
56 case ICmpInst::ICMP_NE: return 5; // 101
57 case ICmpInst::ICMP_ULE: return 6; // 110
58 case ICmpInst::ICMP_SLE: return 6; // 110
78 case 1: NewICmpPred = Sign ? ICmpInst::ICMP_SGT : ICmpInst::ICMP_UGT; break;
79 case 2: NewICmpPred = ICmpInst::ICMP_EQ; break;
80 case 3: NewICmpPred = Sign ? ICmpInst::ICMP_SGE : ICmpInst::ICMP_UGE; break;
81 case 4: NewICmpPred = Sign ? ICmpInst::ICMP_SLT : ICmpInst::ICMP_ULT; break;
82 case 5: NewICmpPred = ICmpInst::ICMP_NE; break;
83 case 6: NewICmpPred = Sign ? ICmpInst::ICMP_SLE : ICmpInst::ICMP_ULE; break;
92 bool llvm::PredicatesFoldable(ICmpInst::Predicate p1, ICmpInst::Predicate p2) {
94 (CmpInst::isSigned(p1) && ICmpInst::isEquality(p2)) ||
95 (CmpInst::isSigned(p2) && ICmpInst::isEquality(p1));