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