Home
last modified time | relevance | path

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

12

/external/llvm/lib/CodeGen/
DAnalysis.cpp152 ISD::CondCode llvm::getFCmpCondCode(FCmpInst::Predicate Pred) { in getFCmpCondCode()
154 case FCmpInst::FCMP_FALSE: return ISD::SETFALSE; in getFCmpCondCode()
155 case FCmpInst::FCMP_OEQ: return ISD::SETOEQ; in getFCmpCondCode()
156 case FCmpInst::FCMP_OGT: return ISD::SETOGT; in getFCmpCondCode()
157 case FCmpInst::FCMP_OGE: return ISD::SETOGE; in getFCmpCondCode()
158 case FCmpInst::FCMP_OLT: return ISD::SETOLT; in getFCmpCondCode()
159 case FCmpInst::FCMP_OLE: return ISD::SETOLE; in getFCmpCondCode()
160 case FCmpInst::FCMP_ONE: return ISD::SETONE; in getFCmpCondCode()
161 case FCmpInst::FCMP_ORD: return ISD::SETO; in getFCmpCondCode()
162 case FCmpInst::FCMP_UNO: return ISD::SETUO; in getFCmpCondCode()
[all …]
/external/llvm/lib/VMCore/
DConstantFold.cpp1264 static FCmpInst::Predicate evaluateFCmpRelation(Constant *V1, Constant *V2) { in evaluateFCmpRelation()
1270 return FCmpInst::BAD_FCMP_PREDICATE; in evaluateFCmpRelation()
1273 if (V1 == V2) return FCmpInst::FCMP_OEQ; in evaluateFCmpRelation()
1280 ConstantExpr::getFCmp(FCmpInst::FCMP_OEQ, V1, V2)); in evaluateFCmpRelation()
1282 return FCmpInst::FCMP_OEQ; in evaluateFCmpRelation()
1284 ConstantExpr::getFCmp(FCmpInst::FCMP_OLT, V1, V2)); in evaluateFCmpRelation()
1286 return FCmpInst::FCMP_OLT; in evaluateFCmpRelation()
1288 ConstantExpr::getFCmp(FCmpInst::FCMP_OGT, V1, V2)); in evaluateFCmpRelation()
1290 return FCmpInst::FCMP_OGT; in evaluateFCmpRelation()
1293 return FCmpInst::BAD_FCMP_PREDICATE; in evaluateFCmpRelation()
[all …]
DAsmWriter.cpp632 case FCmpInst::FCMP_FALSE: pred = "false"; break; in getPredicateText()
633 case FCmpInst::FCMP_OEQ: pred = "oeq"; break; in getPredicateText()
634 case FCmpInst::FCMP_OGT: pred = "ogt"; break; in getPredicateText()
635 case FCmpInst::FCMP_OGE: pred = "oge"; break; in getPredicateText()
636 case FCmpInst::FCMP_OLT: pred = "olt"; break; in getPredicateText()
637 case FCmpInst::FCMP_OLE: pred = "ole"; break; in getPredicateText()
638 case FCmpInst::FCMP_ONE: pred = "one"; break; in getPredicateText()
639 case FCmpInst::FCMP_ORD: pred = "ord"; break; in getPredicateText()
640 case FCmpInst::FCMP_UNO: pred = "uno"; break; in getPredicateText()
641 case FCmpInst::FCMP_UEQ: pred = "ueq"; break; in getPredicateText()
[all …]
DInstructions.cpp2875 return new FCmpInst(InsertBefore, CmpInst::Predicate(predicate), in Create()
2878 return new FCmpInst(CmpInst::Predicate(predicate), in Create()
2889 return new FCmpInst(*InsertAtEnd, CmpInst::Predicate(predicate), in Create()
2897 cast<FCmpInst>(this)->swapOperands(); in swapOperands()
2903 return cast<FCmpInst>(this)->isCommutative(); in isCommutative()
2909 return cast<FCmpInst>(this)->isEquality(); in isEquality()
3084 case FCmpInst::FCMP_OEQ: case FCmpInst::FCMP_ONE: case FCmpInst::FCMP_OGT: in isOrdered()
3085 case FCmpInst::FCMP_OLT: case FCmpInst::FCMP_OGE: case FCmpInst::FCMP_OLE: in isOrdered()
3086 case FCmpInst::FCMP_ORD: return true; in isOrdered()
3093 case FCmpInst::FCMP_UEQ: case FCmpInst::FCMP_UNE: case FCmpInst::FCMP_UGT: in isUnordered()
[all …]
DVerifier.cpp264 void visitFCmpInst(FCmpInst &FC);
1271 void Verifier::visitFCmpInst(FCmpInst &FC) { in visitFCmpInst()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineAndOrXor.cpp69 static unsigned getFCmpCode(FCmpInst::Predicate CC, bool &isOrdered) { in getFCmpCode()
72 case FCmpInst::FCMP_ORD: isOrdered = true; return 0; // 000 in getFCmpCode()
73 case FCmpInst::FCMP_UNO: return 0; // 000 in getFCmpCode()
74 case FCmpInst::FCMP_OGT: isOrdered = true; return 1; // 001 in getFCmpCode()
75 case FCmpInst::FCMP_UGT: return 1; // 001 in getFCmpCode()
76 case FCmpInst::FCMP_OEQ: isOrdered = true; return 2; // 010 in getFCmpCode()
77 case FCmpInst::FCMP_UEQ: return 2; // 010 in getFCmpCode()
78 case FCmpInst::FCMP_OGE: isOrdered = true; return 3; // 011 in getFCmpCode()
79 case FCmpInst::FCMP_UGE: return 3; // 011 in getFCmpCode()
80 case FCmpInst::FCMP_OLT: isOrdered = true; return 4; // 100 in getFCmpCode()
[all …]
DInstCombine.h128 Value *FoldAndOfFCmps(FCmpInst *LHS, FCmpInst *RHS);
131 Value *FoldOrOfFCmps(FCmpInst *LHS, FCmpInst *RHS);
140 Instruction *FoldFCmp_IntToFP_Cst(FCmpInst &I, Instruction *LHSI,
145 Instruction *visitFCmpInst(FCmpInst &I);
DInstCombineCompares.cpp2630 Instruction *InstCombiner::FoldFCmp_IntToFP_Cst(FCmpInst &I, in FoldFCmp_IntToFP_Cst()
2663 case FCmpInst::FCMP_UEQ: in FoldFCmp_IntToFP_Cst()
2664 case FCmpInst::FCMP_OEQ: in FoldFCmp_IntToFP_Cst()
2667 case FCmpInst::FCMP_UGT: in FoldFCmp_IntToFP_Cst()
2668 case FCmpInst::FCMP_OGT: in FoldFCmp_IntToFP_Cst()
2671 case FCmpInst::FCMP_UGE: in FoldFCmp_IntToFP_Cst()
2672 case FCmpInst::FCMP_OGE: in FoldFCmp_IntToFP_Cst()
2675 case FCmpInst::FCMP_ULT: in FoldFCmp_IntToFP_Cst()
2676 case FCmpInst::FCMP_OLT: in FoldFCmp_IntToFP_Cst()
2679 case FCmpInst::FCMP_ULE: in FoldFCmp_IntToFP_Cst()
[all …]
DInstCombineSelect.cpp721 if (FCmpInst *FCI = dyn_cast<FCmpInst>(CondVal)) { in visitSelectInst()
724 if (FCI->getPredicate() == FCmpInst::FCMP_OEQ) { in visitSelectInst()
736 if (FCI->getPredicate() == FCmpInst::FCMP_UNE) { in visitSelectInst()
751 if (FCI->getPredicate() == FCmpInst::FCMP_OEQ) { in visitSelectInst()
763 if (FCI->getPredicate() == FCmpInst::FCMP_UNE) { in visitSelectInst()
DInstructionCombining.cpp550 if (FCmpInst *CI = dyn_cast<FCmpInst>(&I)) in FoldOperationIntoSelectOperand()
1209 FCmpInst::Predicate FPred; Value *Y; in visitBranchInst()
1213 if (FPred == FCmpInst::FCMP_ONE || FPred == FCmpInst::FCMP_OLE || in visitBranchInst()
1214 FPred == FCmpInst::FCMP_OGE) { in visitBranchInst()
1215 FCmpInst *Cond = cast<FCmpInst>(BI.getCondition()); in visitBranchInst()
1216 Cond->setPredicate(FCmpInst::getInversePredicate(FPred)); in visitBranchInst()
/external/llvm/lib/ExecutionEngine/Interpreter/
DExecution.cpp445 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 …]
DInterpreter.h148 void visitFCmpInst(FCmpInst &I);
/external/llvm/lib/Target/CppBackend/
DCPPBackend.cpp858 case FCmpInst::FCMP_FALSE: Out << "FALSE"; break; in printConstant()
859 case FCmpInst::FCMP_ORD: Out << "ORD"; break; in printConstant()
860 case FCmpInst::FCMP_UNO: Out << "UNO"; break; in printConstant()
861 case FCmpInst::FCMP_OEQ: Out << "OEQ"; break; in printConstant()
862 case FCmpInst::FCMP_UEQ: Out << "UEQ"; break; in printConstant()
863 case FCmpInst::FCMP_ONE: Out << "ONE"; break; in printConstant()
864 case FCmpInst::FCMP_UNE: Out << "UNE"; break; in printConstant()
865 case FCmpInst::FCMP_OLT: Out << "OLT"; break; in printConstant()
866 case FCmpInst::FCMP_ULT: Out << "ULT"; break; in printConstant()
867 case FCmpInst::FCMP_OGT: Out << "OGT"; break; in printConstant()
[all …]
/external/llvm/lib/Analysis/
DBranchProbabilityInfo.cpp343 FCmpInst *FCmp = dyn_cast<FCmpInst>(Cond); in calcFloatingPointHeuristics()
352 } else if (FCmp->getPredicate() == FCmpInst::FCMP_ORD) { in calcFloatingPointHeuristics()
355 } else if (FCmp->getPredicate() == FCmpInst::FCMP_UNO) { in calcFloatingPointHeuristics()
DInstructionSimplify.cpp2420 if (Pred == FCmpInst::FCMP_FALSE) in SimplifyFCmpInst()
2422 if (Pred == FCmpInst::FCMP_TRUE) in SimplifyFCmpInst()
2441 if (FCmpInst::isOrdered(Pred)) // True "if ordered and foo" in SimplifyFCmpInst()
2443 assert(FCmpInst::isUnordered(Pred) && in SimplifyFCmpInst()
2452 case FCmpInst::FCMP_OLT: in SimplifyFCmpInst()
2455 case FCmpInst::FCMP_UGE: in SimplifyFCmpInst()
2463 case FCmpInst::FCMP_OGT: in SimplifyFCmpInst()
2466 case FCmpInst::FCMP_ULE: in SimplifyFCmpInst()
2830 Result = SimplifyFCmpInst(cast<FCmpInst>(I)->getPredicate(), in SimplifyInstruction()
/external/llvm/include/llvm/Support/
DIRBuilder.h1086 return CreateFCmp(FCmpInst::FCMP_OEQ, LHS, RHS, Name);
1089 return CreateFCmp(FCmpInst::FCMP_OGT, LHS, RHS, Name);
1092 return CreateFCmp(FCmpInst::FCMP_OGE, LHS, RHS, Name);
1095 return CreateFCmp(FCmpInst::FCMP_OLT, LHS, RHS, Name);
1098 return CreateFCmp(FCmpInst::FCMP_OLE, LHS, RHS, Name);
1101 return CreateFCmp(FCmpInst::FCMP_ONE, LHS, RHS, Name);
1104 return CreateFCmp(FCmpInst::FCMP_ORD, LHS, RHS, Name);
1107 return CreateFCmp(FCmpInst::FCMP_UNO, LHS, RHS, Name);
1110 return CreateFCmp(FCmpInst::FCMP_UEQ, LHS, RHS, Name);
1113 return CreateFCmp(FCmpInst::FCMP_UGT, LHS, RHS, Name);
[all …]
DPatternMatch.h517 inline CmpClass_match<LHS, RHS, FCmpInst, FCmpInst::Predicate>
518 m_FCmp(FCmpInst::Predicate &Pred, const LHS &L, const RHS &R) { in m_FCmp()
520 FCmpInst, FCmpInst::Predicate>(Pred, L, R); in m_FCmp()
DInstVisitor.h168 RetTy visitFCmpInst(FCmpInst &I) { DELEGATE(CmpInst);} in visitFCmpInst()
DNoFolder.h247 return new FCmpInst(P, LHS, RHS); in CreateFCmp()
/external/llvm/include/llvm/CodeGen/
DAnalysis.h72 ISD::CondCode getFCmpCondCode(FCmpInst::Predicate Pred);
/external/llvm/include/llvm/
DInstructions.h1050 class FCmpInst: public CmpInst {
1053 virtual FCmpInst *clone_impl() const;
1056 FCmpInst(
1065 assert(pred <= FCmpInst::LAST_FCMP_PREDICATE &&
1075 FCmpInst(
1084 assert(pred <= FCmpInst::LAST_FCMP_PREDICATE &&
1094 FCmpInst(
1101 assert(pred <= FCmpInst::LAST_FCMP_PREDICATE &&
1142 static inline bool classof(const FCmpInst *) { return true; }
DInstruction.def162 HANDLE_OTHER_INST(46, FCmp , FCmpInst ) // Floating point comparison instr.
/external/llvm/lib/Transforms/Scalar/
DIndVarSimplify.cpp277 FCmpInst *Compare = dyn_cast<FCmpInst>(U1); in HandleFloatingPointIV()
279 Compare = dyn_cast<FCmpInst>(U2); in HandleFloatingPointIV()
/external/llvm/lib/CodeGen/SelectionDAG/
DSelectionDAGBuilder.h38 class FCmpInst; variable
/external/clang/lib/CodeGen/
DCGExprScalar.cpp475 llvm::FCmpInst::FP); }
2287 ResultR = Builder.CreateFCmp((llvm::FCmpInst::Predicate)FCmpOpc, in EmitCompare()
2289 ResultI = Builder.CreateFCmp((llvm::FCmpInst::Predicate)FCmpOpc, in EmitCompare()

12