Lines Matching refs:CmpInst

2064 static AArch64CC::CondCode getCompareCC(CmpInst::Predicate Pred) {  in getCompareCC()
2066 case CmpInst::FCMP_ONE: in getCompareCC()
2067 case CmpInst::FCMP_UEQ: in getCompareCC()
2071 case CmpInst::ICMP_EQ: in getCompareCC()
2072 case CmpInst::FCMP_OEQ: in getCompareCC()
2074 case CmpInst::ICMP_SGT: in getCompareCC()
2075 case CmpInst::FCMP_OGT: in getCompareCC()
2077 case CmpInst::ICMP_SGE: in getCompareCC()
2078 case CmpInst::FCMP_OGE: in getCompareCC()
2080 case CmpInst::ICMP_UGT: in getCompareCC()
2081 case CmpInst::FCMP_UGT: in getCompareCC()
2083 case CmpInst::FCMP_OLT: in getCompareCC()
2085 case CmpInst::ICMP_ULE: in getCompareCC()
2086 case CmpInst::FCMP_OLE: in getCompareCC()
2088 case CmpInst::FCMP_ORD: in getCompareCC()
2090 case CmpInst::FCMP_UNO: in getCompareCC()
2092 case CmpInst::FCMP_UGE: in getCompareCC()
2094 case CmpInst::ICMP_SLT: in getCompareCC()
2095 case CmpInst::FCMP_ULT: in getCompareCC()
2097 case CmpInst::ICMP_SLE: in getCompareCC()
2098 case CmpInst::FCMP_ULE: in getCompareCC()
2100 case CmpInst::FCMP_UNE: in getCompareCC()
2101 case CmpInst::ICMP_NE: in getCompareCC()
2103 case CmpInst::ICMP_UGE: in getCompareCC()
2105 case CmpInst::ICMP_ULT: in getCompareCC()
2112 assert(isa<CmpInst>(BI->getCondition()) && "Expected cmp instruction"); in emitCompareAndBranch()
2113 const CmpInst *CI = cast<CmpInst>(BI->getCondition()); in emitCompareAndBranch()
2114 CmpInst::Predicate Predicate = optimizeCmpPredicate(CI); in emitCompareAndBranch()
2133 Predicate = CmpInst::getInversePredicate(Predicate); in emitCompareAndBranch()
2141 case CmpInst::ICMP_EQ: in emitCompareAndBranch()
2142 case CmpInst::ICMP_NE: in emitCompareAndBranch()
2168 IsCmpNE = Predicate == CmpInst::ICMP_NE; in emitCompareAndBranch()
2170 case CmpInst::ICMP_SLT: in emitCompareAndBranch()
2171 case CmpInst::ICMP_SGE: in emitCompareAndBranch()
2176 IsCmpNE = Predicate == CmpInst::ICMP_SLT; in emitCompareAndBranch()
2178 case CmpInst::ICMP_SGT: in emitCompareAndBranch()
2179 case CmpInst::ICMP_SLE: in emitCompareAndBranch()
2187 IsCmpNE = Predicate == CmpInst::ICMP_SLE; in emitCompareAndBranch()
2250 if (const CmpInst *CI = dyn_cast<CmpInst>(BI->getCondition())) { in selectBranch()
2253 CmpInst::Predicate Predicate = optimizeCmpPredicate(CI); in selectBranch()
2257 case CmpInst::FCMP_FALSE: in selectBranch()
2260 case CmpInst::FCMP_TRUE: in selectBranch()
2272 Predicate = CmpInst::getInversePredicate(Predicate); in selectBranch()
2286 case CmpInst::FCMP_UEQ: in selectBranch()
2290 case CmpInst::FCMP_ONE: in selectBranch()
2446 const CmpInst *CI = cast<CmpInst>(I); in selectCmp()
2449 CmpInst::Predicate Predicate = optimizeCmpPredicate(CI); in selectCmp()
2454 case CmpInst::FCMP_FALSE: in selectCmp()
2460 case CmpInst::FCMP_TRUE: in selectCmp()
2486 case CmpInst::FCMP_UEQ: in selectCmp()
2489 case CmpInst::FCMP_ONE: in selectCmp()
2628 } else if (isa<CmpInst>(Cond) && cast<CmpInst>(Cond)->hasOneUse() && in selectSelect()
2630 const auto *Cmp = cast<CmpInst>(Cond); in selectSelect()
2632 CmpInst::Predicate Predicate = optimizeCmpPredicate(Cmp); in selectSelect()
2637 case CmpInst::FCMP_FALSE: in selectSelect()
2640 case CmpInst::FCMP_TRUE: in selectSelect()
2666 case CmpInst::FCMP_UEQ: in selectSelect()
2670 case CmpInst::FCMP_ONE: in selectSelect()