• Home
  • Raw
  • Download

Lines Matching refs:ICmpInst

21 unsigned llvm::getICmpCode(const ICmpInst *ICI, bool InvertPred) {  in getICmpCode()
22 ICmpInst::Predicate Pred = InvertPred ? ICI->getInversePredicate() in getICmpCode()
26 case ICmpInst::ICMP_UGT: return 1; // 001 in getICmpCode()
27 case ICmpInst::ICMP_SGT: return 1; // 001 in getICmpCode()
28 case ICmpInst::ICMP_EQ: return 2; // 010 in getICmpCode()
29 case ICmpInst::ICMP_UGE: return 3; // 011 in getICmpCode()
30 case ICmpInst::ICMP_SGE: return 3; // 011 in getICmpCode()
31 case ICmpInst::ICMP_ULT: return 4; // 100 in getICmpCode()
32 case ICmpInst::ICMP_SLT: return 4; // 100 in getICmpCode()
33 case ICmpInst::ICMP_NE: return 5; // 101 in getICmpCode()
34 case ICmpInst::ICMP_ULE: return 6; // 110 in getICmpCode()
35 case ICmpInst::ICMP_SLE: return 6; // 110 in getICmpCode()
48 case 1: Pred = Sign ? ICmpInst::ICMP_SGT : ICmpInst::ICMP_UGT; break; in getPredForICmpCode()
49 case 2: Pred = ICmpInst::ICMP_EQ; break; in getPredForICmpCode()
50 case 3: Pred = Sign ? ICmpInst::ICMP_SGE : ICmpInst::ICMP_UGE; break; in getPredForICmpCode()
51 case 4: Pred = Sign ? ICmpInst::ICMP_SLT : ICmpInst::ICMP_ULT; break; in getPredForICmpCode()
52 case 5: Pred = ICmpInst::ICMP_NE; break; in getPredForICmpCode()
53 case 6: Pred = Sign ? ICmpInst::ICMP_SLE : ICmpInst::ICMP_ULE; break; in getPredForICmpCode()
60 bool llvm::predicatesFoldable(ICmpInst::Predicate P1, ICmpInst::Predicate P2) { in predicatesFoldable()
62 (CmpInst::isSigned(P1) && ICmpInst::isEquality(P2)) || in predicatesFoldable()
63 (CmpInst::isSigned(P2) && ICmpInst::isEquality(P1)); in predicatesFoldable()
78 case ICmpInst::ICMP_SLT: in decomposeBitTestICmp()
83 Pred = ICmpInst::ICMP_NE; in decomposeBitTestICmp()
85 case ICmpInst::ICMP_SLE: in decomposeBitTestICmp()
90 Pred = ICmpInst::ICMP_NE; in decomposeBitTestICmp()
92 case ICmpInst::ICMP_SGT: in decomposeBitTestICmp()
97 Pred = ICmpInst::ICMP_EQ; in decomposeBitTestICmp()
99 case ICmpInst::ICMP_SGE: in decomposeBitTestICmp()
104 Pred = ICmpInst::ICMP_EQ; in decomposeBitTestICmp()
106 case ICmpInst::ICMP_ULT: in decomposeBitTestICmp()
111 Pred = ICmpInst::ICMP_EQ; in decomposeBitTestICmp()
113 case ICmpInst::ICMP_ULE: in decomposeBitTestICmp()
118 Pred = ICmpInst::ICMP_EQ; in decomposeBitTestICmp()
120 case ICmpInst::ICMP_UGT: in decomposeBitTestICmp()
125 Pred = ICmpInst::ICMP_NE; in decomposeBitTestICmp()
127 case ICmpInst::ICMP_UGE: in decomposeBitTestICmp()
132 Pred = ICmpInst::ICMP_NE; in decomposeBitTestICmp()