/external/llvm/lib/IR/ |
D | ConstantFold.cpp | 1330 static FCmpInst::Predicate evaluateFCmpRelation(Constant *V1, Constant *V2) { in evaluateFCmpRelation() 1335 if (V1 == V2) return FCmpInst::FCMP_OEQ; in evaluateFCmpRelation() 1342 ConstantExpr::getFCmp(FCmpInst::FCMP_OEQ, V1, V2)); in evaluateFCmpRelation() 1344 return FCmpInst::FCMP_OEQ; in evaluateFCmpRelation() 1346 ConstantExpr::getFCmp(FCmpInst::FCMP_OLT, V1, V2)); in evaluateFCmpRelation() 1348 return FCmpInst::FCMP_OLT; in evaluateFCmpRelation() 1350 ConstantExpr::getFCmp(FCmpInst::FCMP_OGT, V1, V2)); in evaluateFCmpRelation() 1352 return FCmpInst::FCMP_OGT; in evaluateFCmpRelation() 1355 return FCmpInst::BAD_FCMP_PREDICATE; in evaluateFCmpRelation() 1359 FCmpInst::Predicate SwappedRelation = evaluateFCmpRelation(V2, V1); in evaluateFCmpRelation() [all …]
|
D | Instructions.cpp | 3322 return new FCmpInst(InsertBefore, CmpInst::Predicate(predicate), in Create() 3325 return new FCmpInst(CmpInst::Predicate(predicate), in Create() 3336 return new FCmpInst(*InsertAtEnd, CmpInst::Predicate(predicate), in Create() 3344 cast<FCmpInst>(this)->swapOperands(); in swapOperands() 3350 return cast<FCmpInst>(this)->isCommutative(); in isCommutative() 3356 return cast<FCmpInst>(this)->isEquality(); in isEquality() 3550 case FCmpInst::FCMP_OEQ: case FCmpInst::FCMP_ONE: case FCmpInst::FCMP_OGT: in isOrdered() 3551 case FCmpInst::FCMP_OLT: case FCmpInst::FCMP_OGE: case FCmpInst::FCMP_OLE: in isOrdered() 3552 case FCmpInst::FCMP_ORD: return true; in isOrdered() 3559 case FCmpInst::FCMP_UEQ: case FCmpInst::FCMP_UNE: case FCmpInst::FCMP_UGT: in isUnordered() [all …]
|
D | AsmWriter.cpp | 1003 case FCmpInst::FCMP_FALSE: pred = "false"; break; in getPredicateText() 1004 case FCmpInst::FCMP_OEQ: pred = "oeq"; break; in getPredicateText() 1005 case FCmpInst::FCMP_OGT: pred = "ogt"; break; in getPredicateText() 1006 case FCmpInst::FCMP_OGE: pred = "oge"; break; in getPredicateText() 1007 case FCmpInst::FCMP_OLT: pred = "olt"; break; in getPredicateText() 1008 case FCmpInst::FCMP_OLE: pred = "ole"; break; in getPredicateText() 1009 case FCmpInst::FCMP_ONE: pred = "one"; break; in getPredicateText() 1010 case FCmpInst::FCMP_ORD: pred = "ord"; break; in getPredicateText() 1011 case FCmpInst::FCMP_UNO: pred = "uno"; break; in getPredicateText() 1012 case FCmpInst::FCMP_UEQ: pred = "ueq"; break; in getPredicateText() [all …]
|
/external/llvm/lib/CodeGen/ |
D | Analysis.cpp | 163 ISD::CondCode llvm::getFCmpCondCode(FCmpInst::Predicate Pred) { in getFCmpCondCode() 165 case FCmpInst::FCMP_FALSE: return ISD::SETFALSE; in getFCmpCondCode() 166 case FCmpInst::FCMP_OEQ: return ISD::SETOEQ; in getFCmpCondCode() 167 case FCmpInst::FCMP_OGT: return ISD::SETOGT; in getFCmpCondCode() 168 case FCmpInst::FCMP_OGE: return ISD::SETOGE; in getFCmpCondCode() 169 case FCmpInst::FCMP_OLT: return ISD::SETOLT; in getFCmpCondCode() 170 case FCmpInst::FCMP_OLE: return ISD::SETOLE; in getFCmpCondCode() 171 case FCmpInst::FCMP_ONE: return ISD::SETONE; in getFCmpCondCode() 172 case FCmpInst::FCMP_ORD: return ISD::SETO; in getFCmpCondCode() 173 case FCmpInst::FCMP_UNO: return ISD::SETUO; in getFCmpCondCode() [all …]
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineAndOrXor.cpp | 43 static unsigned getFCmpCode(FCmpInst::Predicate CC, bool &isOrdered) { in getFCmpCode() 46 case FCmpInst::FCMP_ORD: isOrdered = true; return 0; // 000 in getFCmpCode() 47 case FCmpInst::FCMP_UNO: return 0; // 000 in getFCmpCode() 48 case FCmpInst::FCMP_OGT: isOrdered = true; return 1; // 001 in getFCmpCode() 49 case FCmpInst::FCMP_UGT: return 1; // 001 in getFCmpCode() 50 case FCmpInst::FCMP_OEQ: isOrdered = true; return 2; // 010 in getFCmpCode() 51 case FCmpInst::FCMP_UEQ: return 2; // 010 in getFCmpCode() 52 case FCmpInst::FCMP_OGE: isOrdered = true; return 3; // 011 in getFCmpCode() 53 case FCmpInst::FCMP_UGE: return 3; // 011 in getFCmpCode() 54 case FCmpInst::FCMP_OLT: isOrdered = true; return 4; // 100 in getFCmpCode() [all …]
|
D | InstCombineCompares.cpp | 3838 Instruction *InstCombiner::FoldFCmp_IntToFP_Cst(FCmpInst &I, in FoldFCmp_IntToFP_Cst() 3854 FCmpInst::Predicate P = I.getPredicate(); in FoldFCmp_IntToFP_Cst() 3866 if (P == FCmpInst::FCMP_OEQ || P == FCmpInst::FCMP_UEQ) in FoldFCmp_IntToFP_Cst() 3869 assert(P == FCmpInst::FCMP_ONE || P == FCmpInst::FCMP_UNE); in FoldFCmp_IntToFP_Cst() 3911 case FCmpInst::FCMP_UEQ: in FoldFCmp_IntToFP_Cst() 3912 case FCmpInst::FCMP_OEQ: in FoldFCmp_IntToFP_Cst() 3915 case FCmpInst::FCMP_UGT: in FoldFCmp_IntToFP_Cst() 3916 case FCmpInst::FCMP_OGT: in FoldFCmp_IntToFP_Cst() 3919 case FCmpInst::FCMP_UGE: in FoldFCmp_IntToFP_Cst() 3920 case FCmpInst::FCMP_OGE: in FoldFCmp_IntToFP_Cst() [all …]
|
D | InstCombineSelect.cpp | 56 return Ordered ? FCmpInst::FCMP_OLT : FCmpInst::FCMP_ULT; in getCmpPredicateForMinMax() 58 return Ordered ? FCmpInst::FCMP_OGT : FCmpInst::FCMP_UGT; in getCmpPredicateForMinMax() 898 if (FCmpInst *FCI = dyn_cast<FCmpInst>(CondVal)) { in visitSelectInst() 901 if (FCI->getPredicate() == FCmpInst::FCMP_OEQ) { in visitSelectInst() 913 if (FCI->getPredicate() == FCmpInst::FCMP_UNE) { in visitSelectInst() 930 if (FCI->hasOneUse() && FCmpInst::isUnordered(FCI->getPredicate())) { in visitSelectInst() 931 FCmpInst::Predicate InvPred = FCI->getInversePredicate(); in visitSelectInst() 944 if (FCI->getPredicate() == FCmpInst::FCMP_OEQ) { in visitSelectInst() 956 if (FCI->getPredicate() == FCmpInst::FCMP_UNE) { in visitSelectInst() 973 if (FCI->hasOneUse() && FCmpInst::isUnordered(FCI->getPredicate())) { in visitSelectInst() [all …]
|
D | InstCombineInternal.h | 248 Value *FoldAndOfFCmps(FCmpInst *LHS, FCmpInst *RHS); 251 Value *FoldOrOfFCmps(FCmpInst *LHS, FCmpInst *RHS); 262 Instruction *FoldFCmp_IntToFP_Cst(FCmpInst &I, Instruction *LHSI, 267 Instruction *visitFCmpInst(FCmpInst &I);
|
D | InstructionCombining.cpp | 730 if (FCmpInst *CI = dyn_cast<FCmpInst>(&I)) in FoldOperationIntoSelectOperand() 2105 FCmpInst::Predicate FPred; Value *Y; in visitBranchInst() 2109 if (FPred == FCmpInst::FCMP_ONE || FPred == FCmpInst::FCMP_OLE || in visitBranchInst() 2110 FPred == FCmpInst::FCMP_OGE) { in visitBranchInst() 2111 FCmpInst *Cond = cast<FCmpInst>(BI.getCondition()); in visitBranchInst() 2112 Cond->setPredicate(FCmpInst::getInversePredicate(FPred)); in visitBranchInst()
|
D | InstCombineVectorOps.cpp | 664 return new FCmpInst(I, cast<FCmpInst>(I)->getPredicate(), in buildNew()
|
/external/llvm/lib/Target/CppBackend/ |
D | CPPBackend.cpp | 902 case FCmpInst::FCMP_FALSE: Out << "FALSE"; break; in printConstant() 903 case FCmpInst::FCMP_ORD: Out << "ORD"; break; in printConstant() 904 case FCmpInst::FCMP_UNO: Out << "UNO"; break; in printConstant() 905 case FCmpInst::FCMP_OEQ: Out << "OEQ"; break; in printConstant() 906 case FCmpInst::FCMP_UEQ: Out << "UEQ"; break; in printConstant() 907 case FCmpInst::FCMP_ONE: Out << "ONE"; break; in printConstant() 908 case FCmpInst::FCMP_UNE: Out << "UNE"; break; in printConstant() 909 case FCmpInst::FCMP_OLT: Out << "OLT"; break; in printConstant() 910 case FCmpInst::FCMP_ULT: Out << "ULT"; break; in printConstant() 911 case FCmpInst::FCMP_OGT: Out << "OGT"; break; in printConstant() [all …]
|
/external/llvm/lib/ExecutionEngine/Interpreter/ |
D | Execution.cpp | 610 void Interpreter::visitFCmpInst(FCmpInst &I) { in visitFCmpInst() 622 case FCmpInst::FCMP_FALSE: R = executeFCMP_BOOL(Src1, Src2, Ty, false); in visitFCmpInst() 624 case FCmpInst::FCMP_TRUE: R = executeFCMP_BOOL(Src1, Src2, Ty, true); in visitFCmpInst() 626 case FCmpInst::FCMP_ORD: R = executeFCMP_ORD(Src1, Src2, Ty); break; in visitFCmpInst() 627 case FCmpInst::FCMP_UNO: R = executeFCMP_UNO(Src1, Src2, Ty); break; in visitFCmpInst() 628 case FCmpInst::FCMP_UEQ: R = executeFCMP_UEQ(Src1, Src2, Ty); break; in visitFCmpInst() 629 case FCmpInst::FCMP_OEQ: R = executeFCMP_OEQ(Src1, Src2, Ty); break; in visitFCmpInst() 630 case FCmpInst::FCMP_UNE: R = executeFCMP_UNE(Src1, Src2, Ty); break; in visitFCmpInst() 631 case FCmpInst::FCMP_ONE: R = executeFCMP_ONE(Src1, Src2, Ty); break; in visitFCmpInst() 632 case FCmpInst::FCMP_ULT: R = executeFCMP_ULT(Src1, Src2, Ty); break; in visitFCmpInst() [all …]
|
D | Interpreter.h | 149 void visitFCmpInst(FCmpInst &I);
|
/external/llvm/include/llvm/IR/ |
D | PatternMatch.h | 731 inline CmpClass_match<LHS, RHS, FCmpInst, FCmpInst::Predicate> 732 m_FCmp(FCmpInst::Predicate &Pred, const LHS &L, const RHS &R) { in m_FCmp() 733 return CmpClass_match<LHS, RHS, FCmpInst, FCmpInst::Predicate>(Pred, L, R); in m_FCmp() 1014 static bool match(FCmpInst::Predicate Pred) { in match() 1021 static bool match(FCmpInst::Predicate Pred) { in match() 1028 static bool match(FCmpInst::Predicate Pred) { in match() 1035 static bool match(FCmpInst::Predicate Pred) { in match() 1074 inline MaxMin_match<FCmpInst, LHS, RHS, ofmax_pred_ty> m_OrdFMax(const LHS &L, in m_OrdFMax() 1076 return MaxMin_match<FCmpInst, LHS, RHS, ofmax_pred_ty>(L, R); in m_OrdFMax() 1089 inline MaxMin_match<FCmpInst, LHS, RHS, ofmin_pred_ty> m_OrdFMin(const LHS &L, in m_OrdFMin() [all …]
|
D | IRBuilder.h | 1450 return CreateFCmp(FCmpInst::FCMP_OEQ, LHS, RHS, Name, FPMathTag); 1454 return CreateFCmp(FCmpInst::FCMP_OGT, LHS, RHS, Name, FPMathTag); 1458 return CreateFCmp(FCmpInst::FCMP_OGE, LHS, RHS, Name, FPMathTag); 1462 return CreateFCmp(FCmpInst::FCMP_OLT, LHS, RHS, Name, FPMathTag); 1466 return CreateFCmp(FCmpInst::FCMP_OLE, LHS, RHS, Name, FPMathTag); 1470 return CreateFCmp(FCmpInst::FCMP_ONE, LHS, RHS, Name, FPMathTag); 1474 return CreateFCmp(FCmpInst::FCMP_ORD, LHS, RHS, Name, FPMathTag); 1478 return CreateFCmp(FCmpInst::FCMP_UNO, LHS, RHS, Name, FPMathTag); 1482 return CreateFCmp(FCmpInst::FCMP_UEQ, LHS, RHS, Name, FPMathTag); 1486 return CreateFCmp(FCmpInst::FCMP_UGT, LHS, RHS, Name, FPMathTag); [all …]
|
D | InstVisitor.h | 176 RetTy visitFCmpInst(FCmpInst &I) { DELEGATE(CmpInst);} in visitFCmpInst()
|
D | Instruction.def | 184 HANDLE_OTHER_INST(52, FCmp , FCmpInst ) // Floating point comparison instr.
|
D | NoFolder.h | 260 return new FCmpInst(P, LHS, RHS); in CreateFCmp()
|
D | Instructions.h | 1249 class FCmpInst: public CmpInst { 1254 FCmpInst *cloneImpl() const; 1258 FCmpInst( 1267 assert(pred <= FCmpInst::LAST_FCMP_PREDICATE && 1277 FCmpInst( 1286 assert(pred <= FCmpInst::LAST_FCMP_PREDICATE && 1296 FCmpInst( 1303 assert(pred <= FCmpInst::LAST_FCMP_PREDICATE &&
|
/external/llvm/lib/Transforms/Utils/ |
D | LoopUtils.cpp | 249 !isa<ICmpInst>(Cur) && !isa<FCmpInst>(Cur) && in AddReductionVar() 274 if (Kind == RK_FloatMinMax && (isa<FCmpInst>(Cur) || isa<SelectInst>(Cur))) in AddReductionVar() 318 ((!isa<FCmpInst>(UI) && !isa<ICmpInst>(UI) && in AddReductionVar() 368 assert((isa<ICmpInst>(I) || isa<FCmpInst>(I) || isa<SelectInst>(I)) && in isMinMaxSelectCmpPattern() 375 if ((Cmp = dyn_cast<ICmpInst>(I)) || (Cmp = dyn_cast<FCmpInst>(I))) { in isMinMaxSelectCmpPattern() 385 !(Cmp = dyn_cast<FCmpInst>(I->getOperand(0)))) in isMinMaxSelectCmpPattern()
|
/external/llvm/lib/Analysis/ |
D | BranchProbabilityInfo.cpp | 478 FCmpInst *FCmp = dyn_cast<FCmpInst>(Cond); in calcFloatingPointHeuristics() 487 } else if (FCmp->getPredicate() == FCmpInst::FCMP_ORD) { in calcFloatingPointHeuristics() 490 } else if (FCmp->getPredicate() == FCmpInst::FCMP_UNO) { in calcFloatingPointHeuristics()
|
D | InstructionSimplify.cpp | 3123 if (Pred == FCmpInst::FCMP_FALSE) in SimplifyFCmpInst() 3125 if (Pred == FCmpInst::FCMP_TRUE) in SimplifyFCmpInst() 3130 if (Pred == FCmpInst::FCMP_UNO) in SimplifyFCmpInst() 3132 if (Pred == FCmpInst::FCMP_ORD) in SimplifyFCmpInst() 3156 if (FCmpInst::isOrdered(Pred)) // True "if ordered and foo" in SimplifyFCmpInst() 3158 assert(FCmpInst::isUnordered(Pred) && in SimplifyFCmpInst() 3167 case FCmpInst::FCMP_OLT: in SimplifyFCmpInst() 3170 case FCmpInst::FCMP_UGE: in SimplifyFCmpInst() 3178 case FCmpInst::FCMP_OGT: in SimplifyFCmpInst() 3181 case FCmpInst::FCMP_ULE: in SimplifyFCmpInst() [all …]
|
D | ValueTracking.cpp | 3944 case FCmpInst::FCMP_UGT: in matchSelectPattern() 3945 case FCmpInst::FCMP_UGE: in matchSelectPattern() 3946 case FCmpInst::FCMP_OGT: in matchSelectPattern() 3947 case FCmpInst::FCMP_OGE: return {SPF_FMAXNUM, NaNBehavior, Ordered}; in matchSelectPattern() 3948 case FCmpInst::FCMP_ULT: in matchSelectPattern() 3949 case FCmpInst::FCMP_ULE: in matchSelectPattern() 3950 case FCmpInst::FCMP_OLT: in matchSelectPattern() 3951 case FCmpInst::FCMP_OLE: return {SPF_FMINNUM, NaNBehavior, Ordered}; in matchSelectPattern()
|
/external/llvm/include/llvm/CodeGen/ |
D | Analysis.h | 87 ISD::CondCode getFCmpCondCode(FCmpInst::Predicate Pred);
|
/external/llvm/lib/Transforms/Scalar/ |
D | Scalarizer.cpp | 73 FCmpSplitter(FCmpInst &fci) : FCI(fci) {} in FCmpSplitter() 78 FCmpInst &FCI; 143 bool visitFCmpInst(FCmpInst &); 428 bool Scalarizer::visitFCmpInst(FCmpInst &FCI) { in visitFCmpInst()
|