/external/llvm/lib/Transforms/Scalar/ |
D | Float2Int.cpp | 89 static CmpInst::Predicate mapFCmpPred(CmpInst::Predicate P) { in mapFCmpPred() 91 case CmpInst::FCMP_OEQ: in mapFCmpPred() 92 case CmpInst::FCMP_UEQ: in mapFCmpPred() 93 return CmpInst::ICMP_EQ; in mapFCmpPred() 94 case CmpInst::FCMP_OGT: in mapFCmpPred() 95 case CmpInst::FCMP_UGT: in mapFCmpPred() 96 return CmpInst::ICMP_SGT; in mapFCmpPred() 97 case CmpInst::FCMP_OGE: in mapFCmpPred() 98 case CmpInst::FCMP_UGE: in mapFCmpPred() 99 return CmpInst::ICMP_SGE; in mapFCmpPred() [all …]
|
D | IndVarSimplify.cpp | 311 CmpInst::Predicate NewPred = CmpInst::BAD_ICMP_PREDICATE; in HandleFloatingPointIV() 314 case CmpInst::FCMP_OEQ: in HandleFloatingPointIV() 315 case CmpInst::FCMP_UEQ: NewPred = CmpInst::ICMP_EQ; break; in HandleFloatingPointIV() 316 case CmpInst::FCMP_ONE: in HandleFloatingPointIV() 317 case CmpInst::FCMP_UNE: NewPred = CmpInst::ICMP_NE; break; in HandleFloatingPointIV() 318 case CmpInst::FCMP_OGT: in HandleFloatingPointIV() 319 case CmpInst::FCMP_UGT: NewPred = CmpInst::ICMP_SGT; break; in HandleFloatingPointIV() 320 case CmpInst::FCMP_OGE: in HandleFloatingPointIV() 321 case CmpInst::FCMP_UGE: NewPred = CmpInst::ICMP_SGE; break; in HandleFloatingPointIV() 322 case CmpInst::FCMP_OLT: in HandleFloatingPointIV() [all …]
|
D | EarlyCSE.cpp | 69 isa<GetElementPtrInst>(Inst) || isa<CmpInst>(Inst) || in canHandle() 111 if (CmpInst *CI = dyn_cast<CmpInst>(Inst)) { in getHashValue() 114 CmpInst::Predicate Pred = CI->getPredicate(); in getHashValue() 179 if (CmpInst *LHSCmp = dyn_cast<CmpInst>(LHSI)) { in isEqual() 180 assert(isa<CmpInst>(RHSI) && in isEqual() 182 CmpInst *RHSCmp = cast<CmpInst>(RHSI); in isEqual()
|
D | CorrelatedValuePropagation.cpp | 44 bool processCmp(CmpInst *C); 166 bool CorrelatedValuePropagation::processCmp(CmpInst *C) { in processCmp() 236 LazyValueInfo::Tristate Value = LVI->getPredicateOnEdge(CmpInst::ICMP_EQ, in processSwitch() 311 BBChanged |= processCmp(cast<CmpInst>(II)); in runOnFunction()
|
/external/llvm/lib/Transforms/Utils/ |
D | CmpInstAnalysis.cpp | 73 CmpInst::Predicate &NewICmpPred) { in getICmpValue() 77 return ConstantInt::get(CmpInst::makeCmpResultType(LHS->getType()), 0); in getICmpValue() 85 return ConstantInt::get(CmpInst::makeCmpResultType(LHS->getType()), 1); in getICmpValue() 93 return (CmpInst::isSigned(p1) == CmpInst::isSigned(p2)) || in PredicatesFoldable() 94 (CmpInst::isSigned(p1) && ICmpInst::isEquality(p2)) || in PredicatesFoldable() 95 (CmpInst::isSigned(p2) && ICmpInst::isEquality(p1)); in PredicatesFoldable()
|
D | FlattenCFG.cpp | 244 CmpInst *CI = dyn_cast<CmpInst>(BI->getCondition()); in FlattenParallelAndOr() 248 CmpInst::Predicate Predicate = CI->getPredicate(); in FlattenParallelAndOr() 250 if ((Predicate == CmpInst::ICMP_NE) || (Predicate == CmpInst::FCMP_ONE)) { in FlattenParallelAndOr()
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
D | FastISel.cpp | 2160 CmpInst::Predicate FastISel::optimizeCmpPredicate(const CmpInst *CI) const { in optimizeCmpPredicate() 2162 CmpInst::Predicate Predicate = CI->getPredicate(); in optimizeCmpPredicate() 2168 case CmpInst::FCMP_FALSE: Predicate = CmpInst::FCMP_FALSE; break; in optimizeCmpPredicate() 2169 case CmpInst::FCMP_OEQ: Predicate = CmpInst::FCMP_ORD; break; in optimizeCmpPredicate() 2170 case CmpInst::FCMP_OGT: Predicate = CmpInst::FCMP_FALSE; break; in optimizeCmpPredicate() 2171 case CmpInst::FCMP_OGE: Predicate = CmpInst::FCMP_ORD; break; in optimizeCmpPredicate() 2172 case CmpInst::FCMP_OLT: Predicate = CmpInst::FCMP_FALSE; break; in optimizeCmpPredicate() 2173 case CmpInst::FCMP_OLE: Predicate = CmpInst::FCMP_ORD; break; in optimizeCmpPredicate() 2174 case CmpInst::FCMP_ONE: Predicate = CmpInst::FCMP_FALSE; break; in optimizeCmpPredicate() 2175 case CmpInst::FCMP_ORD: Predicate = CmpInst::FCMP_ORD; break; in optimizeCmpPredicate() [all …]
|
/external/llvm/include/llvm/Transforms/Utils/ |
D | CmpInstAnalysis.h | 57 CmpInst::Predicate &NewICmpPred); 61 bool PredicatesFoldable(CmpInst::Predicate p1, CmpInst::Predicate p2);
|
/external/llvm/lib/Analysis/ |
D | InstructionSimplify.cpp | 89 static bool isSameCompare(Value *V, CmpInst::Predicate Pred, Value *LHS, in isSameCompare() 91 CmpInst *Cmp = dyn_cast<CmpInst>(V); in isSameCompare() 94 CmpInst::Predicate CPred = Cmp->getPredicate(); in isSameCompare() 98 return CPred == CmpInst::getSwappedPredicate(Pred) && CLHS == RHS && in isSameCompare() 368 static Value *ThreadCmpOverSelect(CmpInst::Predicate Pred, Value *LHS, in ThreadCmpOverSelect() 378 Pred = CmpInst::getSwappedPredicate(Pred); in ThreadCmpOverSelect() 493 static Value *ThreadCmpOverPHI(CmpInst::Predicate Pred, Value *LHS, Value *RHS, in ThreadCmpOverPHI() 502 Pred = CmpInst::getSwappedPredicate(Pred); in ThreadCmpOverPHI() 1896 return CmpInst::makeCmpResultType(Op->getType()); in GetCompareTy() 1902 static Value *ExtractEquivalentCondition(Value *V, CmpInst::Predicate Pred, in ExtractEquivalentCondition() [all …]
|
D | BranchProbabilityInfo.cpp | 393 case CmpInst::ICMP_EQ: in calcZeroHeuristics() 397 case CmpInst::ICMP_NE: in calcZeroHeuristics() 401 case CmpInst::ICMP_SLT: in calcZeroHeuristics() 405 case CmpInst::ICMP_SGT: in calcZeroHeuristics() 412 } else if (CV->isOne() && CI->getPredicate() == CmpInst::ICMP_SLT) { in calcZeroHeuristics() 418 case CmpInst::ICMP_EQ: in calcZeroHeuristics() 422 case CmpInst::ICMP_NE: in calcZeroHeuristics() 426 case CmpInst::ICMP_SGT: in calcZeroHeuristics()
|
D | DependenceAnalysis.cpp | 440 if (isKnownPredicate(CmpInst::ICMP_EQ, X->getD(), Y->getD())) in intersectConstraints() 442 if (isKnownPredicate(CmpInst::ICMP_NE, X->getD(), Y->getD())) { in intersectConstraints() 469 if (isKnownPredicate(CmpInst::ICMP_EQ, Prod1, Prod2)) { in intersectConstraints() 474 if (isKnownPredicate(CmpInst::ICMP_EQ, Prod1, Prod2)) in intersectConstraints() 476 if (isKnownPredicate(CmpInst::ICMP_NE, Prod1, Prod2)) { in intersectConstraints() 483 if (isKnownPredicate(CmpInst::ICMP_NE, Prod1, Prod2)) { in intersectConstraints() 555 if (isKnownPredicate(CmpInst::ICMP_EQ, Sum, Y->getC())) in intersectConstraints() 557 if (isKnownPredicate(CmpInst::ICMP_NE, Sum, Y->getC())) { in intersectConstraints() 899 if (Pred == CmpInst::ICMP_EQ || in isKnownPredicate() 900 Pred == CmpInst::ICMP_NE) { in isKnownPredicate() [all …]
|
/external/llvm/lib/Target/X86/ |
D | X86FastISel.cpp | 173 getX86ConditionCode(CmpInst::Predicate Predicate) { in getX86ConditionCode() 179 case CmpInst::FCMP_UEQ: CC = X86::COND_E; break; in getX86ConditionCode() 180 case CmpInst::FCMP_OLT: NeedSwap = true; // fall-through in getX86ConditionCode() 181 case CmpInst::FCMP_OGT: CC = X86::COND_A; break; in getX86ConditionCode() 182 case CmpInst::FCMP_OLE: NeedSwap = true; // fall-through in getX86ConditionCode() 183 case CmpInst::FCMP_OGE: CC = X86::COND_AE; break; in getX86ConditionCode() 184 case CmpInst::FCMP_UGT: NeedSwap = true; // fall-through in getX86ConditionCode() 185 case CmpInst::FCMP_ULT: CC = X86::COND_B; break; in getX86ConditionCode() 186 case CmpInst::FCMP_UGE: NeedSwap = true; // fall-through in getX86ConditionCode() 187 case CmpInst::FCMP_ULE: CC = X86::COND_BE; break; in getX86ConditionCode() [all …]
|
/external/llvm/lib/Target/Mips/ |
D | MipsFastISel.cpp | 113 bool emitCmp(unsigned DestReg, const CmpInst *CI); 495 bool MipsFastISel::emitCmp(unsigned ResultReg, const CmpInst *CI) { in emitCmp() 504 CmpInst::Predicate P = CI->getPredicate(); in emitCmp() 509 case CmpInst::ICMP_EQ: { in emitCmp() 515 case CmpInst::ICMP_NE: { in emitCmp() 521 case CmpInst::ICMP_UGT: { in emitCmp() 525 case CmpInst::ICMP_ULT: { in emitCmp() 529 case CmpInst::ICMP_UGE: { in emitCmp() 535 case CmpInst::ICMP_ULE: { in emitCmp() 541 case CmpInst::ICMP_SGT: { in emitCmp() [all …]
|
/external/lldb/source/Expression/ |
D | IRInterpreter.cpp | 491 case CmpInst::ICMP_EQ: in CanInterpret() 492 case CmpInst::ICMP_NE: in CanInterpret() 493 case CmpInst::ICMP_UGT: in CanInterpret() 494 case CmpInst::ICMP_UGE: in CanInterpret() 495 case CmpInst::ICMP_ULT: in CanInterpret() 496 case CmpInst::ICMP_ULE: in CanInterpret() 497 case CmpInst::ICMP_SGT: in CanInterpret() 498 case CmpInst::ICMP_SGE: in CanInterpret() 499 case CmpInst::ICMP_SLT: in CanInterpret() 500 case CmpInst::ICMP_SLE: in CanInterpret() [all …]
|
/external/llvm/lib/IR/ |
D | ConstantRange.cpp | 52 ConstantRange ConstantRange::makeAllowedICmpRegion(CmpInst::Predicate Pred, in makeAllowedICmpRegion() 61 case CmpInst::ICMP_EQ: in makeAllowedICmpRegion() 63 case CmpInst::ICMP_NE: in makeAllowedICmpRegion() 67 case CmpInst::ICMP_ULT: { in makeAllowedICmpRegion() 73 case CmpInst::ICMP_SLT: { in makeAllowedICmpRegion() 79 case CmpInst::ICMP_ULE: { in makeAllowedICmpRegion() 85 case CmpInst::ICMP_SLE: { in makeAllowedICmpRegion() 91 case CmpInst::ICMP_UGT: { in makeAllowedICmpRegion() 97 case CmpInst::ICMP_SGT: { in makeAllowedICmpRegion() 103 case CmpInst::ICMP_UGE: { in makeAllowedICmpRegion() [all …]
|
D | Instructions.cpp | 3009 void CmpInst::anchor() {} in anchor() 3011 CmpInst::CmpInst(Type *ty, OtherOps op, unsigned short predicate, in CmpInst() function in CmpInst 3015 OperandTraits<CmpInst>::op_begin(this), in CmpInst() 3016 OperandTraits<CmpInst>::operands(this), in CmpInst() 3024 CmpInst::CmpInst(Type *ty, OtherOps op, unsigned short predicate, in CmpInst() function in CmpInst 3028 OperandTraits<CmpInst>::op_begin(this), in CmpInst() 3029 OperandTraits<CmpInst>::operands(this), in CmpInst() 3037 CmpInst * 3038 CmpInst::Create(OtherOps Op, unsigned short predicate, in Create() 3043 return new ICmpInst(InsertBefore, CmpInst::Predicate(predicate), in Create() [all …]
|
D | Constants.cpp | 1971 case CmpInst::FCMP_FALSE: case CmpInst::FCMP_OEQ: case CmpInst::FCMP_OGT: in getCompare() 1972 case CmpInst::FCMP_OGE: case CmpInst::FCMP_OLT: case CmpInst::FCMP_OLE: in getCompare() 1973 case CmpInst::FCMP_ONE: case CmpInst::FCMP_ORD: case CmpInst::FCMP_UNO: in getCompare() 1974 case CmpInst::FCMP_UEQ: case CmpInst::FCMP_UGT: case CmpInst::FCMP_UGE: in getCompare() 1975 case CmpInst::FCMP_ULT: case CmpInst::FCMP_ULE: case CmpInst::FCMP_UNE: in getCompare() 1976 case CmpInst::FCMP_TRUE: in getCompare() 1979 case CmpInst::ICMP_EQ: case CmpInst::ICMP_NE: case CmpInst::ICMP_UGT: in getCompare() 1980 case CmpInst::ICMP_UGE: case CmpInst::ICMP_ULT: case CmpInst::ICMP_ULE: in getCompare() 1981 case CmpInst::ICMP_SGT: case CmpInst::ICMP_SGE: case CmpInst::ICMP_SLT: in getCompare() 1982 case CmpInst::ICMP_SLE: in getCompare() [all …]
|
/external/llvm/include/llvm/IR/ |
D | PatternMatch.h | 72 inline class_match<CmpInst> m_Cmp() { return class_match<CmpInst>(); } in m_Cmp() 719 inline CmpClass_match<LHS, RHS, CmpInst, CmpInst::Predicate> 720 m_Cmp(CmpInst::Predicate &Pred, const LHS &L, const RHS &R) { in m_Cmp() 721 return CmpClass_match<LHS, RHS, CmpInst, CmpInst::Predicate>(Pred, L, R); in m_Cmp() 987 return Pred == CmpInst::ICMP_SGT || Pred == CmpInst::ICMP_SGE; in match() 994 return Pred == CmpInst::ICMP_SLT || Pred == CmpInst::ICMP_SLE; in match() 1001 return Pred == CmpInst::ICMP_UGT || Pred == CmpInst::ICMP_UGE; in match() 1008 return Pred == CmpInst::ICMP_ULT || Pred == CmpInst::ICMP_ULE; in match() 1015 return Pred == CmpInst::FCMP_OGT || Pred == CmpInst::FCMP_OGE; in match() 1022 return Pred == CmpInst::FCMP_OLT || Pred == CmpInst::FCMP_OLE; in match() [all …]
|
D | InstrTypes.h | 675 class CmpInst : public Instruction { 677 CmpInst() = delete; 679 CmpInst(Type *ty, Instruction::OtherOps op, unsigned short pred, 683 CmpInst(Type *ty, Instruction::OtherOps op, unsigned short pred, 738 static CmpInst *Create(OtherOps Op, 747 static CmpInst *Create(OtherOps Op, unsigned short predicate, Value *S1, 892 struct OperandTraits<CmpInst> : public FixedNumOperandTraits<CmpInst, 2> { 895 DEFINE_TRANSPARENT_OPERAND_ACCESSORS(CmpInst, Value)
|
D | ConstantRange.h | 71 static ConstantRange makeAllowedICmpRegion(CmpInst::Predicate Pred, 82 static ConstantRange makeSatisfyingICmpRegion(CmpInst::Predicate Pred,
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombinePHI.cpp | 27 assert(isa<BinaryOperator>(FirstInst) || isa<CmpInst>(FirstInst)); in FoldPHIArgBinOpIntoPHI() 55 if (CmpInst *CI = dyn_cast<CmpInst>(I)) in FoldPHIArgBinOpIntoPHI() 56 if (CI->getPredicate() != cast<CmpInst>(FirstInst)->getPredicate()) in FoldPHIArgBinOpIntoPHI() 114 if (CmpInst *CIOp = dyn_cast<CmpInst>(FirstInst)) { in FoldPHIArgBinOpIntoPHI() 115 CmpInst *NewCI = CmpInst::Create(CIOp->getOpcode(), CIOp->getPredicate(), in FoldPHIArgBinOpIntoPHI() 416 } else if (isa<BinaryOperator>(FirstInst) || isa<CmpInst>(FirstInst)) { in FoldPHIArgOpIntoPHI() 499 CmpInst *CIOp = cast<CmpInst>(FirstInst); in FoldPHIArgOpIntoPHI() 500 CmpInst *NewCI = CmpInst::Create(CIOp->getOpcode(), CIOp->getPredicate(), in FoldPHIArgOpIntoPHI()
|
/external/llvm/lib/Target/PowerPC/ |
D | PPCFastISel.cpp | 207 static Optional<PPC::Predicate> getComparePred(CmpInst::Predicate Pred) { in getComparePred() 210 case CmpInst::FCMP_FALSE: in getComparePred() 211 case CmpInst::FCMP_UEQ: in getComparePred() 212 case CmpInst::FCMP_UGT: in getComparePred() 213 case CmpInst::FCMP_UGE: in getComparePred() 214 case CmpInst::FCMP_ULT: in getComparePred() 215 case CmpInst::FCMP_ULE: in getComparePred() 216 case CmpInst::FCMP_UNE: in getComparePred() 217 case CmpInst::FCMP_TRUE: in getComparePred() 221 case CmpInst::FCMP_OEQ: in getComparePred() [all …]
|
/external/llvm/lib/Target/AArch64/ |
D | AArch64FastISel.cpp | 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() [all …]
|
/external/llvm/lib/Target/ARM/ |
D | ARMFastISel.cpp | 1203 static ARMCC::CondCodes getComparePred(CmpInst::Predicate Pred) { in getComparePred() 1206 case CmpInst::FCMP_ONE: in getComparePred() 1207 case CmpInst::FCMP_UEQ: in getComparePred() 1211 case CmpInst::ICMP_EQ: in getComparePred() 1212 case CmpInst::FCMP_OEQ: in getComparePred() 1214 case CmpInst::ICMP_SGT: in getComparePred() 1215 case CmpInst::FCMP_OGT: in getComparePred() 1217 case CmpInst::ICMP_SGE: in getComparePred() 1218 case CmpInst::FCMP_OGE: in getComparePred() 1220 case CmpInst::ICMP_UGT: in getComparePred() [all …]
|
/external/llvm/tools/llvm-stress/ |
D | llvm-stress.cpp | 598 (CmpInst::LAST_FCMP_PREDICATE - CmpInst::FIRST_FCMP_PREDICATE) + in Act() 599 CmpInst::FIRST_FCMP_PREDICATE; in Act() 602 (CmpInst::LAST_ICMP_PREDICATE - CmpInst::FIRST_ICMP_PREDICATE) + in Act() 603 CmpInst::FIRST_ICMP_PREDICATE; in Act() 606 Value *V = CmpInst::Create(fp ? Instruction::FCmp : Instruction::ICmp, in Act()
|