Home
last modified time | relevance | path

Searched refs:FCmpInst (Results 1 – 25 of 40) sorted by relevance

12

/external/llvm/lib/IR/
DConstantFold.cpp1324 static FCmpInst::Predicate evaluateFCmpRelation(Constant *V1, Constant *V2) { in evaluateFCmpRelation()
1329 if (V1 == V2) return FCmpInst::FCMP_OEQ; in evaluateFCmpRelation()
1336 ConstantExpr::getFCmp(FCmpInst::FCMP_OEQ, V1, V2)); in evaluateFCmpRelation()
1338 return FCmpInst::FCMP_OEQ; in evaluateFCmpRelation()
1340 ConstantExpr::getFCmp(FCmpInst::FCMP_OLT, V1, V2)); in evaluateFCmpRelation()
1342 return FCmpInst::FCMP_OLT; in evaluateFCmpRelation()
1344 ConstantExpr::getFCmp(FCmpInst::FCMP_OGT, V1, V2)); in evaluateFCmpRelation()
1346 return FCmpInst::FCMP_OGT; in evaluateFCmpRelation()
1349 return FCmpInst::BAD_FCMP_PREDICATE; in evaluateFCmpRelation()
1353 FCmpInst::Predicate SwappedRelation = evaluateFCmpRelation(V2, V1); in evaluateFCmpRelation()
[all …]
DInstructions.cpp3051 return new FCmpInst(InsertBefore, CmpInst::Predicate(predicate), in Create()
3054 return new FCmpInst(CmpInst::Predicate(predicate), in Create()
3065 return new FCmpInst(*InsertAtEnd, CmpInst::Predicate(predicate), in Create()
3073 cast<FCmpInst>(this)->swapOperands(); in swapOperands()
3079 return cast<FCmpInst>(this)->isCommutative(); in isCommutative()
3085 return cast<FCmpInst>(this)->isEquality(); in isEquality()
3260 case FCmpInst::FCMP_OEQ: case FCmpInst::FCMP_ONE: case FCmpInst::FCMP_OGT: in isOrdered()
3261 case FCmpInst::FCMP_OLT: case FCmpInst::FCMP_OGE: case FCmpInst::FCMP_OLE: in isOrdered()
3262 case FCmpInst::FCMP_ORD: return true; in isOrdered()
3269 case FCmpInst::FCMP_UEQ: case FCmpInst::FCMP_UNE: case FCmpInst::FCMP_UGT: in isUnordered()
[all …]
DAsmWriter.cpp954 case FCmpInst::FCMP_FALSE: pred = "false"; break; in getPredicateText()
955 case FCmpInst::FCMP_OEQ: pred = "oeq"; break; in getPredicateText()
956 case FCmpInst::FCMP_OGT: pred = "ogt"; break; in getPredicateText()
957 case FCmpInst::FCMP_OGE: pred = "oge"; break; in getPredicateText()
958 case FCmpInst::FCMP_OLT: pred = "olt"; break; in getPredicateText()
959 case FCmpInst::FCMP_OLE: pred = "ole"; break; in getPredicateText()
960 case FCmpInst::FCMP_ONE: pred = "one"; break; in getPredicateText()
961 case FCmpInst::FCMP_ORD: pred = "ord"; break; in getPredicateText()
962 case FCmpInst::FCMP_UNO: pred = "uno"; break; in getPredicateText()
963 case FCmpInst::FCMP_UEQ: pred = "ueq"; break; in getPredicateText()
[all …]
/external/llvm/lib/CodeGen/
DAnalysis.cpp161 ISD::CondCode llvm::getFCmpCondCode(FCmpInst::Predicate Pred) { in getFCmpCondCode()
163 case FCmpInst::FCMP_FALSE: return ISD::SETFALSE; in getFCmpCondCode()
164 case FCmpInst::FCMP_OEQ: return ISD::SETOEQ; in getFCmpCondCode()
165 case FCmpInst::FCMP_OGT: return ISD::SETOGT; in getFCmpCondCode()
166 case FCmpInst::FCMP_OGE: return ISD::SETOGE; in getFCmpCondCode()
167 case FCmpInst::FCMP_OLT: return ISD::SETOLT; in getFCmpCondCode()
168 case FCmpInst::FCMP_OLE: return ISD::SETOLE; in getFCmpCondCode()
169 case FCmpInst::FCMP_ONE: return ISD::SETONE; in getFCmpCondCode()
170 case FCmpInst::FCMP_ORD: return ISD::SETO; in getFCmpCondCode()
171 case FCmpInst::FCMP_UNO: return ISD::SETUO; in getFCmpCondCode()
[all …]
/external/llvm/lib/Transforms/InstCombine/
DInstCombineAndOrXor.cpp43 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 …]
DInstCombineCompares.cpp3703 Instruction *InstCombiner::FoldFCmp_IntToFP_Cst(FCmpInst &I, in FoldFCmp_IntToFP_Cst()
3727 FCmpInst::Predicate P = I.getPredicate(); in FoldFCmp_IntToFP_Cst()
3739 if (P == FCmpInst::FCMP_OEQ || P == FCmpInst::FCMP_UEQ) in FoldFCmp_IntToFP_Cst()
3742 assert(P == FCmpInst::FCMP_ONE || P == FCmpInst::FCMP_UNE); in FoldFCmp_IntToFP_Cst()
3767 case FCmpInst::FCMP_UEQ: in FoldFCmp_IntToFP_Cst()
3768 case FCmpInst::FCMP_OEQ: in FoldFCmp_IntToFP_Cst()
3771 case FCmpInst::FCMP_UGT: in FoldFCmp_IntToFP_Cst()
3772 case FCmpInst::FCMP_OGT: in FoldFCmp_IntToFP_Cst()
3775 case FCmpInst::FCMP_UGE: in FoldFCmp_IntToFP_Cst()
3776 case FCmpInst::FCMP_OGE: in FoldFCmp_IntToFP_Cst()
[all …]
DInstCombineInternal.h255 Value *FoldAndOfFCmps(FCmpInst *LHS, FCmpInst *RHS);
258 Value *FoldOrOfFCmps(FCmpInst *LHS, FCmpInst *RHS);
269 Instruction *FoldFCmp_IntToFP_Cst(FCmpInst &I, Instruction *LHSI,
274 Instruction *visitFCmpInst(FCmpInst &I);
DInstCombineSelect.cpp982 if (FCmpInst *FCI = dyn_cast<FCmpInst>(CondVal)) { in visitSelectInst()
985 if (FCI->getPredicate() == FCmpInst::FCMP_OEQ) { in visitSelectInst()
997 if (FCI->getPredicate() == FCmpInst::FCMP_UNE) { in visitSelectInst()
1014 if (FCI->hasOneUse() && FCmpInst::isUnordered(FCI->getPredicate())) { in visitSelectInst()
1015 FCmpInst::Predicate InvPred = FCI->getInversePredicate(); in visitSelectInst()
1026 if (FCI->getPredicate() == FCmpInst::FCMP_OEQ) { in visitSelectInst()
1038 if (FCI->getPredicate() == FCmpInst::FCMP_UNE) { in visitSelectInst()
1055 if (FCI->hasOneUse() && FCmpInst::isUnordered(FCI->getPredicate())) { in visitSelectInst()
1056 FCmpInst::Predicate InvPred = FCI->getInversePredicate(); in visitSelectInst()
DInstructionCombining.cpp684 if (FCmpInst *CI = dyn_cast<FCmpInst>(&I)) in FoldOperationIntoSelectOperand()
2040 FCmpInst::Predicate FPred; Value *Y; in visitBranchInst()
2044 if (FPred == FCmpInst::FCMP_ONE || FPred == FCmpInst::FCMP_OLE || in visitBranchInst()
2045 FPred == FCmpInst::FCMP_OGE) { in visitBranchInst()
2046 FCmpInst *Cond = cast<FCmpInst>(BI.getCondition()); in visitBranchInst()
2047 Cond->setPredicate(FCmpInst::getInversePredicate(FPred)); in visitBranchInst()
DInstCombineVectorOps.cpp713 return new FCmpInst(I, cast<FCmpInst>(I)->getPredicate(), in BuildNew()
/external/llvm/lib/Target/CppBackend/
DCPPBackend.cpp903 case FCmpInst::FCMP_FALSE: Out << "FALSE"; break; in printConstant()
904 case FCmpInst::FCMP_ORD: Out << "ORD"; break; in printConstant()
905 case FCmpInst::FCMP_UNO: Out << "UNO"; break; in printConstant()
906 case FCmpInst::FCMP_OEQ: Out << "OEQ"; break; in printConstant()
907 case FCmpInst::FCMP_UEQ: Out << "UEQ"; break; in printConstant()
908 case FCmpInst::FCMP_ONE: Out << "ONE"; break; in printConstant()
909 case FCmpInst::FCMP_UNE: Out << "UNE"; break; in printConstant()
910 case FCmpInst::FCMP_OLT: Out << "OLT"; break; in printConstant()
911 case FCmpInst::FCMP_ULT: Out << "ULT"; break; in printConstant()
912 case FCmpInst::FCMP_OGT: Out << "OGT"; break; in printConstant()
[all …]
/external/llvm/lib/ExecutionEngine/Interpreter/
DExecution.cpp610 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 …]
DInterpreter.h151 void visitFCmpInst(FCmpInst &I);
/external/llvm/include/llvm/IR/
DPatternMatch.h731 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 …]
DIRBuilder.h1372 return CreateFCmp(FCmpInst::FCMP_OEQ, LHS, RHS, Name);
1375 return CreateFCmp(FCmpInst::FCMP_OGT, LHS, RHS, Name);
1378 return CreateFCmp(FCmpInst::FCMP_OGE, LHS, RHS, Name);
1381 return CreateFCmp(FCmpInst::FCMP_OLT, LHS, RHS, Name);
1384 return CreateFCmp(FCmpInst::FCMP_OLE, LHS, RHS, Name);
1387 return CreateFCmp(FCmpInst::FCMP_ONE, LHS, RHS, Name);
1390 return CreateFCmp(FCmpInst::FCMP_ORD, LHS, RHS, Name);
1393 return CreateFCmp(FCmpInst::FCMP_UNO, LHS, RHS, Name);
1396 return CreateFCmp(FCmpInst::FCMP_UEQ, LHS, RHS, Name);
1399 return CreateFCmp(FCmpInst::FCMP_UGT, LHS, RHS, Name);
[all …]
DInstructions.h1165 class FCmpInst: public CmpInst {
1168 FCmpInst *clone_impl() const override;
1171 FCmpInst(
1180 assert(pred <= FCmpInst::LAST_FCMP_PREDICATE &&
1190 FCmpInst(
1199 assert(pred <= FCmpInst::LAST_FCMP_PREDICATE &&
1209 FCmpInst(
1216 assert(pred <= FCmpInst::LAST_FCMP_PREDICATE &&
DInstVisitor.h173 RetTy visitFCmpInst(FCmpInst &I) { DELEGATE(CmpInst);} in visitFCmpInst()
DInstruction.def163 HANDLE_OTHER_INST(47, FCmp , FCmpInst ) // Floating point comparison instr.
DNoFolder.h260 return new FCmpInst(P, LHS, RHS); in CreateFCmp()
/external/llvm/lib/Analysis/
DBranchProbabilityInfo.cpp455 FCmpInst *FCmp = dyn_cast<FCmpInst>(Cond); in calcFloatingPointHeuristics()
464 } else if (FCmp->getPredicate() == FCmpInst::FCMP_ORD) { in calcFloatingPointHeuristics()
467 } else if (FCmp->getPredicate() == FCmpInst::FCMP_UNO) { in calcFloatingPointHeuristics()
DInstructionSimplify.cpp3050 if (Pred == FCmpInst::FCMP_FALSE) in SimplifyFCmpInst()
3052 if (Pred == FCmpInst::FCMP_TRUE) in SimplifyFCmpInst()
3075 if (FCmpInst::isOrdered(Pred)) // True "if ordered and foo" in SimplifyFCmpInst()
3077 assert(FCmpInst::isUnordered(Pred) && in SimplifyFCmpInst()
3086 case FCmpInst::FCMP_OLT: in SimplifyFCmpInst()
3089 case FCmpInst::FCMP_UGE: in SimplifyFCmpInst()
3097 case FCmpInst::FCMP_OGT: in SimplifyFCmpInst()
3100 case FCmpInst::FCMP_ULE: in SimplifyFCmpInst()
3110 case FCmpInst::FCMP_UGE: in SimplifyFCmpInst()
3114 case FCmpInst::FCMP_OLT: in SimplifyFCmpInst()
[all …]
/external/llvm/include/llvm/CodeGen/
DAnalysis.h84 ISD::CondCode getFCmpCondCode(FCmpInst::Predicate Pred);
/external/llvm/lib/Transforms/Scalar/
DScalarizer.cpp73 FCmpSplitter(FCmpInst &fci) : FCI(fci) {} in FCmpSplitter()
78 FCmpInst &FCI;
143 bool visitFCmpInst(FCmpInst &);
422 bool Scalarizer::visitFCmpInst(FCmpInst &FCI) { in visitFCmpInst()
DIndVarSimplify.cpp282 FCmpInst *Compare = dyn_cast<FCmpInst>(U1); in HandleFloatingPointIV()
284 Compare = dyn_cast<FCmpInst>(U2); in HandleFloatingPointIV()
/external/llvm/lib/Transforms/Vectorize/
DLoopVectorize.cpp4123 !isa<ICmpInst>(Cur) && !isa<FCmpInst>(Cur) && in AddReductionVar()
4144 if (Kind == RK_FloatMinMax && (isa<FCmpInst>(Cur) || in AddReductionVar()
4189 ((!isa<FCmpInst>(UI) && in AddReductionVar()
4234 assert((isa<ICmpInst>(I) || isa<FCmpInst>(I) || isa<SelectInst>(I)) && in isMinMaxSelectCmpPattern()
4241 if ((Cmp = dyn_cast<ICmpInst>(I)) || (Cmp = dyn_cast<FCmpInst>(I))) { in isMinMaxSelectCmpPattern()
4251 !(Cmp = dyn_cast<FCmpInst>(I->getOperand(0)))) in isMinMaxSelectCmpPattern()

12