/external/llvm/lib/CodeGen/ |
D | Analysis.cpp | 151 ISD::CondCode llvm::getFCmpCondCode(FCmpInst::Predicate Pred) { in getFCmpCondCode() 154 case FCmpInst::FCMP_FALSE: FOC = FPC = ISD::SETFALSE; break; in getFCmpCondCode() 155 case FCmpInst::FCMP_OEQ: FOC = ISD::SETEQ; FPC = ISD::SETOEQ; break; in getFCmpCondCode() 156 case FCmpInst::FCMP_OGT: FOC = ISD::SETGT; FPC = ISD::SETOGT; break; in getFCmpCondCode() 157 case FCmpInst::FCMP_OGE: FOC = ISD::SETGE; FPC = ISD::SETOGE; break; in getFCmpCondCode() 158 case FCmpInst::FCMP_OLT: FOC = ISD::SETLT; FPC = ISD::SETOLT; break; in getFCmpCondCode() 159 case FCmpInst::FCMP_OLE: FOC = ISD::SETLE; FPC = ISD::SETOLE; break; in getFCmpCondCode() 160 case FCmpInst::FCMP_ONE: FOC = ISD::SETNE; FPC = ISD::SETONE; break; in getFCmpCondCode() 161 case FCmpInst::FCMP_ORD: FOC = FPC = ISD::SETO; break; in getFCmpCondCode() 162 case FCmpInst::FCMP_UNO: FOC = FPC = ISD::SETUO; break; in getFCmpCondCode() [all …]
|
/external/llvm/lib/VMCore/ |
D | ConstantFold.cpp | 1529 static FCmpInst::Predicate evaluateFCmpRelation(Constant *V1, Constant *V2) { in evaluateFCmpRelation() 1535 return FCmpInst::BAD_FCMP_PREDICATE; in evaluateFCmpRelation() 1538 if (V1 == V2) return FCmpInst::FCMP_OEQ; in evaluateFCmpRelation() 1545 ConstantExpr::getFCmp(FCmpInst::FCMP_OEQ, V1, V2)); in evaluateFCmpRelation() 1547 return FCmpInst::FCMP_OEQ; in evaluateFCmpRelation() 1549 ConstantExpr::getFCmp(FCmpInst::FCMP_OLT, V1, V2)); in evaluateFCmpRelation() 1551 return FCmpInst::FCMP_OLT; in evaluateFCmpRelation() 1553 ConstantExpr::getFCmp(FCmpInst::FCMP_OGT, V1, V2)); in evaluateFCmpRelation() 1555 return FCmpInst::FCMP_OGT; in evaluateFCmpRelation() 1558 return FCmpInst::BAD_FCMP_PREDICATE; in evaluateFCmpRelation() [all …]
|
D | AsmWriter.cpp | 631 case FCmpInst::FCMP_FALSE: pred = "false"; break; in getPredicateText() 632 case FCmpInst::FCMP_OEQ: pred = "oeq"; break; in getPredicateText() 633 case FCmpInst::FCMP_OGT: pred = "ogt"; break; in getPredicateText() 634 case FCmpInst::FCMP_OGE: pred = "oge"; break; in getPredicateText() 635 case FCmpInst::FCMP_OLT: pred = "olt"; break; in getPredicateText() 636 case FCmpInst::FCMP_OLE: pred = "ole"; break; in getPredicateText() 637 case FCmpInst::FCMP_ONE: pred = "one"; break; in getPredicateText() 638 case FCmpInst::FCMP_ORD: pred = "ord"; break; in getPredicateText() 639 case FCmpInst::FCMP_UNO: pred = "uno"; break; in getPredicateText() 640 case FCmpInst::FCMP_UEQ: pred = "ueq"; break; in getPredicateText() [all …]
|
D | Instructions.cpp | 2575 return new FCmpInst(InsertBefore, CmpInst::Predicate(predicate), in Create() 2578 return new FCmpInst(CmpInst::Predicate(predicate), in Create() 2589 return new FCmpInst(*InsertAtEnd, CmpInst::Predicate(predicate), in Create() 2597 cast<FCmpInst>(this)->swapOperands(); in swapOperands() 2603 return cast<FCmpInst>(this)->isCommutative(); in isCommutative() 2609 return cast<FCmpInst>(this)->isEquality(); in isEquality() 2784 case FCmpInst::FCMP_OEQ: case FCmpInst::FCMP_ONE: case FCmpInst::FCMP_OGT: in isOrdered() 2785 case FCmpInst::FCMP_OLT: case FCmpInst::FCMP_OGE: case FCmpInst::FCMP_OLE: in isOrdered() 2786 case FCmpInst::FCMP_ORD: return true; in isOrdered() 2793 case FCmpInst::FCMP_UEQ: case FCmpInst::FCMP_UNE: case FCmpInst::FCMP_UGT: in isUnordered() [all …]
|
D | Verifier.cpp | 261 void visitFCmpInst(FCmpInst &FC); 1237 void Verifier::visitFCmpInst(FCmpInst &FC) { in visitFCmpInst()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineAndOrXor.cpp | 112 static unsigned getFCmpCode(FCmpInst::Predicate CC, bool &isOrdered) { in getFCmpCode() 115 case FCmpInst::FCMP_ORD: isOrdered = true; return 0; // 000 in getFCmpCode() 116 case FCmpInst::FCMP_UNO: return 0; // 000 in getFCmpCode() 117 case FCmpInst::FCMP_OGT: isOrdered = true; return 1; // 001 in getFCmpCode() 118 case FCmpInst::FCMP_UGT: return 1; // 001 in getFCmpCode() 119 case FCmpInst::FCMP_OEQ: isOrdered = true; return 2; // 010 in getFCmpCode() 120 case FCmpInst::FCMP_UEQ: return 2; // 010 in getFCmpCode() 121 case FCmpInst::FCMP_OGE: isOrdered = true; return 3; // 011 in getFCmpCode() 122 case FCmpInst::FCMP_UGE: return 3; // 011 in getFCmpCode() 123 case FCmpInst::FCMP_OLT: isOrdered = true; return 4; // 100 in getFCmpCode() [all …]
|
D | InstCombine.h | 123 Value *FoldAndOfFCmps(FCmpInst *LHS, FCmpInst *RHS); 126 Value *FoldOrOfFCmps(FCmpInst *LHS, FCmpInst *RHS); 135 Instruction *FoldFCmp_IntToFP_Cst(FCmpInst &I, Instruction *LHSI, 140 Instruction *visitFCmpInst(FCmpInst &I);
|
D | InstCombineCompares.cpp | 2577 Instruction *InstCombiner::FoldFCmp_IntToFP_Cst(FCmpInst &I, in FoldFCmp_IntToFP_Cst() 2610 case FCmpInst::FCMP_UEQ: in FoldFCmp_IntToFP_Cst() 2611 case FCmpInst::FCMP_OEQ: in FoldFCmp_IntToFP_Cst() 2614 case FCmpInst::FCMP_UGT: in FoldFCmp_IntToFP_Cst() 2615 case FCmpInst::FCMP_OGT: in FoldFCmp_IntToFP_Cst() 2618 case FCmpInst::FCMP_UGE: in FoldFCmp_IntToFP_Cst() 2619 case FCmpInst::FCMP_OGE: in FoldFCmp_IntToFP_Cst() 2622 case FCmpInst::FCMP_ULT: in FoldFCmp_IntToFP_Cst() 2623 case FCmpInst::FCMP_OLT: in FoldFCmp_IntToFP_Cst() 2626 case FCmpInst::FCMP_ULE: in FoldFCmp_IntToFP_Cst() [all …]
|
D | InstCombineSelect.cpp | 700 if (FCmpInst *FCI = dyn_cast<FCmpInst>(CondVal)) { in visitSelectInst() 703 if (FCI->getPredicate() == FCmpInst::FCMP_OEQ) { in visitSelectInst() 715 if (FCI->getPredicate() == FCmpInst::FCMP_UNE) { in visitSelectInst() 730 if (FCI->getPredicate() == FCmpInst::FCMP_OEQ) { in visitSelectInst() 742 if (FCI->getPredicate() == FCmpInst::FCMP_UNE) { in visitSelectInst()
|
D | InstructionCombining.cpp | 496 if (FCmpInst *CI = dyn_cast<FCmpInst>(&I)) in FoldOperationIntoSelectOperand() 1129 FCmpInst::Predicate FPred; Value *Y; in visitBranchInst() 1133 if (FPred == FCmpInst::FCMP_ONE || FPred == FCmpInst::FCMP_OLE || in visitBranchInst() 1134 FPred == FCmpInst::FCMP_OGE) { in visitBranchInst() 1135 FCmpInst *Cond = cast<FCmpInst>(BI.getCondition()); in visitBranchInst() 1136 Cond->setPredicate(FCmpInst::getInversePredicate(FPred)); in visitBranchInst()
|
/external/llvm/lib/ExecutionEngine/Interpreter/ |
D | Execution.cpp | 445 void Interpreter::visitFCmpInst(FCmpInst &I) { in visitFCmpInst() 453 case FCmpInst::FCMP_FALSE: R.IntVal = APInt(1,false); break; in visitFCmpInst() 454 case FCmpInst::FCMP_TRUE: R.IntVal = APInt(1,true); break; in visitFCmpInst() 455 case FCmpInst::FCMP_ORD: R = executeFCMP_ORD(Src1, Src2, Ty); break; in visitFCmpInst() 456 case FCmpInst::FCMP_UNO: R = executeFCMP_UNO(Src1, Src2, Ty); break; in visitFCmpInst() 457 case FCmpInst::FCMP_UEQ: R = executeFCMP_UEQ(Src1, Src2, Ty); break; in visitFCmpInst() 458 case FCmpInst::FCMP_OEQ: R = executeFCMP_OEQ(Src1, Src2, Ty); break; in visitFCmpInst() 459 case FCmpInst::FCMP_UNE: R = executeFCMP_UNE(Src1, Src2, Ty); break; in visitFCmpInst() 460 case FCmpInst::FCMP_ONE: R = executeFCMP_ONE(Src1, Src2, Ty); break; in visitFCmpInst() 461 case FCmpInst::FCMP_ULT: R = executeFCMP_ULT(Src1, Src2, Ty); break; in visitFCmpInst() [all …]
|
D | Interpreter.h | 142 void visitFCmpInst(FCmpInst &I);
|
/external/llvm/lib/Target/CppBackend/ |
D | CPPBackend.cpp | 833 case FCmpInst::FCMP_FALSE: Out << "FALSE"; break; in printConstant() 834 case FCmpInst::FCMP_ORD: Out << "ORD"; break; in printConstant() 835 case FCmpInst::FCMP_UNO: Out << "UNO"; break; in printConstant() 836 case FCmpInst::FCMP_OEQ: Out << "OEQ"; break; in printConstant() 837 case FCmpInst::FCMP_UEQ: Out << "UEQ"; break; in printConstant() 838 case FCmpInst::FCMP_ONE: Out << "ONE"; break; in printConstant() 839 case FCmpInst::FCMP_UNE: Out << "UNE"; break; in printConstant() 840 case FCmpInst::FCMP_OLT: Out << "OLT"; break; in printConstant() 841 case FCmpInst::FCMP_ULT: Out << "ULT"; break; in printConstant() 842 case FCmpInst::FCMP_OGT: Out << "OGT"; break; in printConstant() [all …]
|
/external/llvm/lib/Target/CBackend/ |
D | CBackend.cpp | 310 void visitFCmpInst(FCmpInst &I); 876 if (CE->getPredicate() == FCmpInst::FCMP_FALSE) in printConstant() 878 else if (CE->getPredicate() == FCmpInst::FCMP_TRUE) in printConstant() 884 case FCmpInst::FCMP_ORD: op = "ord"; break; in printConstant() 885 case FCmpInst::FCMP_UNO: op = "uno"; break; in printConstant() 886 case FCmpInst::FCMP_UEQ: op = "ueq"; break; in printConstant() 887 case FCmpInst::FCMP_UNE: op = "une"; break; in printConstant() 888 case FCmpInst::FCMP_ULT: op = "ult"; break; in printConstant() 889 case FCmpInst::FCMP_ULE: op = "ule"; break; in printConstant() 890 case FCmpInst::FCMP_UGT: op = "ugt"; break; in printConstant() [all …]
|
/external/llvm/include/llvm/Support/ |
D | IRBuilder.h | 1050 return CreateFCmp(FCmpInst::FCMP_OEQ, LHS, RHS, Name); 1053 return CreateFCmp(FCmpInst::FCMP_OGT, LHS, RHS, Name); 1056 return CreateFCmp(FCmpInst::FCMP_OGE, LHS, RHS, Name); 1059 return CreateFCmp(FCmpInst::FCMP_OLT, LHS, RHS, Name); 1062 return CreateFCmp(FCmpInst::FCMP_OLE, LHS, RHS, Name); 1065 return CreateFCmp(FCmpInst::FCMP_ONE, LHS, RHS, Name); 1068 return CreateFCmp(FCmpInst::FCMP_ORD, LHS, RHS, Name); 1071 return CreateFCmp(FCmpInst::FCMP_UNO, LHS, RHS, Name); 1074 return CreateFCmp(FCmpInst::FCMP_UEQ, LHS, RHS, Name); 1077 return CreateFCmp(FCmpInst::FCMP_UGT, LHS, RHS, Name); [all …]
|
D | PatternMatch.h | 475 inline CmpClass_match<LHS, RHS, FCmpInst, FCmpInst::Predicate> 476 m_FCmp(FCmpInst::Predicate &Pred, const LHS &L, const RHS &R) { in m_FCmp() 478 FCmpInst, FCmpInst::Predicate>(Pred, L, R); in m_FCmp()
|
D | InstVisitor.h | 168 RetTy visitFCmpInst(FCmpInst &I) { DELEGATE(CmpInst);} in visitFCmpInst()
|
D | NoFolder.h | 247 return new FCmpInst(P, LHS, RHS); in CreateFCmp()
|
/external/llvm/include/llvm/CodeGen/ |
D | Analysis.h | 71 ISD::CondCode getFCmpCondCode(FCmpInst::Predicate Pred);
|
/external/llvm/include/llvm/ |
D | Instructions.h | 735 class FCmpInst: public CmpInst { 738 virtual FCmpInst *clone_impl() const; 741 FCmpInst( 750 assert(pred <= FCmpInst::LAST_FCMP_PREDICATE && 760 FCmpInst( 769 assert(pred <= FCmpInst::LAST_FCMP_PREDICATE && 779 FCmpInst( 786 assert(pred <= FCmpInst::LAST_FCMP_PREDICATE && 827 static inline bool classof(const FCmpInst *) { return true; }
|
D | Instruction.def | 159 HANDLE_OTHER_INST(43, FCmp , FCmpInst ) // Floating point comparison instr.
|
/external/llvm/lib/Analysis/ |
D | InstructionSimplify.cpp | 2117 if (Pred == FCmpInst::FCMP_FALSE) in SimplifyFCmpInst() 2119 if (Pred == FCmpInst::FCMP_TRUE) in SimplifyFCmpInst() 2138 if (FCmpInst::isOrdered(Pred)) // True "if ordered and foo" in SimplifyFCmpInst() 2140 assert(FCmpInst::isUnordered(Pred) && in SimplifyFCmpInst() 2149 case FCmpInst::FCMP_OLT: in SimplifyFCmpInst() 2152 case FCmpInst::FCMP_UGE: in SimplifyFCmpInst() 2160 case FCmpInst::FCMP_OGT: in SimplifyFCmpInst() 2163 case FCmpInst::FCMP_ULE: in SimplifyFCmpInst() 2451 Result = SimplifyFCmpInst(cast<FCmpInst>(I)->getPredicate(), in SimplifyInstruction()
|
/external/llvm/lib/Transforms/Scalar/ |
D | IndVarSimplify.cpp | 312 FCmpInst *Compare = dyn_cast<FCmpInst>(U1); in HandleFloatingPointIV() 314 Compare = dyn_cast<FCmpInst>(U2); in HandleFloatingPointIV()
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
D | SelectionDAGBuilder.h | 38 class FCmpInst; variable
|
/external/clang/lib/CodeGen/ |
D | CGExprScalar.cpp | 486 llvm::FCmpInst::FP); } 2214 ResultR = Builder.CreateFCmp((llvm::FCmpInst::Predicate)FCmpOpc, in EmitCompare() 2216 ResultI = Builder.CreateFCmp((llvm::FCmpInst::Predicate)FCmpOpc, in EmitCompare()
|