Home
last modified time | relevance | path

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

123456

/external/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DIntrinsicInst.cpp124 FCmpInst::Predicate
129 return FCmpInst::BAD_FCMP_PREDICATE; in getPredicate()
130 return StringSwitch<FCmpInst::Predicate>(cast<MDString>(MD)->getString()) in getPredicate()
131 .Case("oeq", FCmpInst::FCMP_OEQ) in getPredicate()
132 .Case("ogt", FCmpInst::FCMP_OGT) in getPredicate()
133 .Case("oge", FCmpInst::FCMP_OGE) in getPredicate()
134 .Case("olt", FCmpInst::FCMP_OLT) in getPredicate()
135 .Case("ole", FCmpInst::FCMP_OLE) in getPredicate()
136 .Case("one", FCmpInst::FCMP_ONE) in getPredicate()
137 .Case("ord", FCmpInst::FCMP_ORD) in getPredicate()
[all …]
DConstantFold.cpp1471 static FCmpInst::Predicate evaluateFCmpRelation(Constant *V1, Constant *V2) { in evaluateFCmpRelation()
1477 if (V1 == V2) return FCmpInst::FCMP_UEQ; in evaluateFCmpRelation()
1484 ConstantExpr::getFCmp(FCmpInst::FCMP_OEQ, V1, V2)); in evaluateFCmpRelation()
1486 return FCmpInst::FCMP_OEQ; in evaluateFCmpRelation()
1488 ConstantExpr::getFCmp(FCmpInst::FCMP_OLT, V1, V2)); in evaluateFCmpRelation()
1490 return FCmpInst::FCMP_OLT; in evaluateFCmpRelation()
1492 ConstantExpr::getFCmp(FCmpInst::FCMP_OGT, V1, V2)); in evaluateFCmpRelation()
1494 return FCmpInst::FCMP_OGT; in evaluateFCmpRelation()
1497 return FCmpInst::BAD_FCMP_PREDICATE; in evaluateFCmpRelation()
1501 FCmpInst::Predicate SwappedRelation = evaluateFCmpRelation(V2, V1); in evaluateFCmpRelation()
[all …]
DInstructions.cpp3493 return new FCmpInst(InsertBefore, CmpInst::Predicate(predicate), in Create()
3496 return new FCmpInst(CmpInst::Predicate(predicate), in Create()
3507 return new FCmpInst(*InsertAtEnd, CmpInst::Predicate(predicate), in Create()
3515 cast<FCmpInst>(this)->swapOperands(); in swapOperands()
3521 return cast<FCmpInst>(this)->isCommutative(); in isCommutative()
3527 return cast<FCmpInst>(this)->isEquality(); in isEquality()
3566 case FCmpInst::FCMP_FALSE: return "false"; in getPredicateName()
3567 case FCmpInst::FCMP_OEQ: return "oeq"; in getPredicateName()
3568 case FCmpInst::FCMP_OGT: return "ogt"; in getPredicateName()
3569 case FCmpInst::FCMP_OGE: return "oge"; in getPredicateName()
[all …]
/external/llvm-project/llvm/lib/IR/
DIntrinsicInst.cpp126 FCmpInst::Predicate ConstrainedFPCmpIntrinsic::getPredicate() const { in getPredicate()
129 return FCmpInst::BAD_FCMP_PREDICATE; in getPredicate()
130 return StringSwitch<FCmpInst::Predicate>(cast<MDString>(MD)->getString()) in getPredicate()
131 .Case("oeq", FCmpInst::FCMP_OEQ) in getPredicate()
132 .Case("ogt", FCmpInst::FCMP_OGT) in getPredicate()
133 .Case("oge", FCmpInst::FCMP_OGE) in getPredicate()
134 .Case("olt", FCmpInst::FCMP_OLT) in getPredicate()
135 .Case("ole", FCmpInst::FCMP_OLE) in getPredicate()
136 .Case("one", FCmpInst::FCMP_ONE) in getPredicate()
137 .Case("ord", FCmpInst::FCMP_ORD) in getPredicate()
[all …]
DConstantFold.cpp1592 static FCmpInst::Predicate evaluateFCmpRelation(Constant *V1, Constant *V2) { in evaluateFCmpRelation()
1598 if (V1 == V2) return FCmpInst::FCMP_UEQ; in evaluateFCmpRelation()
1605 ConstantExpr::getFCmp(FCmpInst::FCMP_OEQ, V1, V2)); in evaluateFCmpRelation()
1607 return FCmpInst::FCMP_OEQ; in evaluateFCmpRelation()
1609 ConstantExpr::getFCmp(FCmpInst::FCMP_OLT, V1, V2)); in evaluateFCmpRelation()
1611 return FCmpInst::FCMP_OLT; in evaluateFCmpRelation()
1613 ConstantExpr::getFCmp(FCmpInst::FCMP_OGT, V1, V2)); in evaluateFCmpRelation()
1615 return FCmpInst::FCMP_OGT; in evaluateFCmpRelation()
1618 return FCmpInst::BAD_FCMP_PREDICATE; in evaluateFCmpRelation()
1622 FCmpInst::Predicate SwappedRelation = evaluateFCmpRelation(V2, V1); in evaluateFCmpRelation()
[all …]
DInstructions.cpp3608 return new FCmpInst(InsertBefore, CmpInst::Predicate(predicate), in Create()
3611 return new FCmpInst(CmpInst::Predicate(predicate), in Create()
3622 return new FCmpInst(*InsertAtEnd, CmpInst::Predicate(predicate), in Create()
3630 cast<FCmpInst>(this)->swapOperands(); in swapOperands()
3636 return cast<FCmpInst>(this)->isCommutative(); in isCommutative()
3642 if (FCmpInst::isFPPredicate(P)) in isEquality()
3643 return FCmpInst::isEquality(P); in isEquality()
3683 case FCmpInst::FCMP_FALSE: return "false"; in getPredicateName()
3684 case FCmpInst::FCMP_OEQ: return "oeq"; in getPredicateName()
3685 case FCmpInst::FCMP_OGT: return "ogt"; in getPredicateName()
[all …]
/external/llvm/lib/IR/
DConstantFold.cpp1343 static FCmpInst::Predicate evaluateFCmpRelation(Constant *V1, Constant *V2) { in evaluateFCmpRelation()
1348 if (V1 == V2) return FCmpInst::FCMP_OEQ; in evaluateFCmpRelation()
1355 ConstantExpr::getFCmp(FCmpInst::FCMP_OEQ, V1, V2)); in evaluateFCmpRelation()
1357 return FCmpInst::FCMP_OEQ; in evaluateFCmpRelation()
1359 ConstantExpr::getFCmp(FCmpInst::FCMP_OLT, V1, V2)); in evaluateFCmpRelation()
1361 return FCmpInst::FCMP_OLT; in evaluateFCmpRelation()
1363 ConstantExpr::getFCmp(FCmpInst::FCMP_OGT, V1, V2)); in evaluateFCmpRelation()
1365 return FCmpInst::FCMP_OGT; in evaluateFCmpRelation()
1368 return FCmpInst::BAD_FCMP_PREDICATE; in evaluateFCmpRelation()
1372 FCmpInst::Predicate SwappedRelation = evaluateFCmpRelation(V2, V1); in evaluateFCmpRelation()
[all …]
/external/llvm/lib/CodeGen/
DAnalysis.cpp162 ISD::CondCode llvm::getFCmpCondCode(FCmpInst::Predicate Pred) { in getFCmpCondCode()
164 case FCmpInst::FCMP_FALSE: return ISD::SETFALSE; in getFCmpCondCode()
165 case FCmpInst::FCMP_OEQ: return ISD::SETOEQ; in getFCmpCondCode()
166 case FCmpInst::FCMP_OGT: return ISD::SETOGT; in getFCmpCondCode()
167 case FCmpInst::FCMP_OGE: return ISD::SETOGE; in getFCmpCondCode()
168 case FCmpInst::FCMP_OLT: return ISD::SETOLT; in getFCmpCondCode()
169 case FCmpInst::FCMP_OLE: return ISD::SETOLE; in getFCmpCondCode()
170 case FCmpInst::FCMP_ONE: return ISD::SETONE; in getFCmpCondCode()
171 case FCmpInst::FCMP_ORD: return ISD::SETO; in getFCmpCondCode()
172 case FCmpInst::FCMP_UNO: return ISD::SETUO; in getFCmpCondCode()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DAnalysis.cpp201 ISD::CondCode llvm::getFCmpCondCode(FCmpInst::Predicate Pred) { in getFCmpCondCode()
203 case FCmpInst::FCMP_FALSE: return ISD::SETFALSE; in getFCmpCondCode()
204 case FCmpInst::FCMP_OEQ: return ISD::SETOEQ; in getFCmpCondCode()
205 case FCmpInst::FCMP_OGT: return ISD::SETOGT; in getFCmpCondCode()
206 case FCmpInst::FCMP_OGE: return ISD::SETOGE; in getFCmpCondCode()
207 case FCmpInst::FCMP_OLT: return ISD::SETOLT; in getFCmpCondCode()
208 case FCmpInst::FCMP_OLE: return ISD::SETOLE; in getFCmpCondCode()
209 case FCmpInst::FCMP_ONE: return ISD::SETONE; in getFCmpCondCode()
210 case FCmpInst::FCMP_ORD: return ISD::SETO; in getFCmpCondCode()
211 case FCmpInst::FCMP_UNO: return ISD::SETUO; in getFCmpCondCode()
[all …]
/external/llvm-project/llvm/lib/CodeGen/
DAnalysis.cpp202 ISD::CondCode llvm::getFCmpCondCode(FCmpInst::Predicate Pred) { in getFCmpCondCode()
204 case FCmpInst::FCMP_FALSE: return ISD::SETFALSE; in getFCmpCondCode()
205 case FCmpInst::FCMP_OEQ: return ISD::SETOEQ; in getFCmpCondCode()
206 case FCmpInst::FCMP_OGT: return ISD::SETOGT; in getFCmpCondCode()
207 case FCmpInst::FCMP_OGE: return ISD::SETOGE; in getFCmpCondCode()
208 case FCmpInst::FCMP_OLT: return ISD::SETOLT; in getFCmpCondCode()
209 case FCmpInst::FCMP_OLE: return ISD::SETOLE; in getFCmpCondCode()
210 case FCmpInst::FCMP_ONE: return ISD::SETONE; in getFCmpCondCode()
211 case FCmpInst::FCMP_ORD: return ISD::SETO; in getFCmpCondCode()
212 case FCmpInst::FCMP_UNO: return ISD::SETUO; in getFCmpCondCode()
[all …]
/external/llvm/lib/Transforms/InstCombine/
DInstCombineAndOrXor.cpp43 static unsigned getFCmpCode(FCmpInst::Predicate CC) { in getFCmpCode()
44 assert(FCmpInst::FCMP_FALSE <= CC && CC <= FCmpInst::FCMP_TRUE && in getFCmpCode()
48 static_assert(FCmpInst::FCMP_FALSE == 0, ""); // 0 0 0 0 in getFCmpCode()
49 static_assert(FCmpInst::FCMP_OEQ == 1, ""); // 0 0 0 1 in getFCmpCode()
50 static_assert(FCmpInst::FCMP_OGT == 2, ""); // 0 0 1 0 in getFCmpCode()
51 static_assert(FCmpInst::FCMP_OGE == 3, ""); // 0 0 1 1 in getFCmpCode()
52 static_assert(FCmpInst::FCMP_OLT == 4, ""); // 0 1 0 0 in getFCmpCode()
53 static_assert(FCmpInst::FCMP_OLE == 5, ""); // 0 1 0 1 in getFCmpCode()
54 static_assert(FCmpInst::FCMP_ONE == 6, ""); // 0 1 1 0 in getFCmpCode()
55 static_assert(FCmpInst::FCMP_ORD == 7, ""); // 0 1 1 1 in getFCmpCode()
[all …]
DInstCombineSelect.cpp56 return Ordered ? FCmpInst::FCMP_OLT : FCmpInst::FCMP_ULT; in getCmpPredicateForMinMax()
58 return Ordered ? FCmpInst::FCMP_OGT : FCmpInst::FCMP_UGT; in getCmpPredicateForMinMax()
992 if (FCmpInst *FCI = dyn_cast<FCmpInst>(CondVal)) { in visitSelectInst()
995 if (FCI->getPredicate() == FCmpInst::FCMP_OEQ) { in visitSelectInst()
1007 if (FCI->getPredicate() == FCmpInst::FCMP_UNE) { in visitSelectInst()
1024 if (FCI->hasOneUse() && FCmpInst::isUnordered(FCI->getPredicate())) { in visitSelectInst()
1025 FCmpInst::Predicate InvPred = FCI->getInversePredicate(); in visitSelectInst()
1038 if (FCI->getPredicate() == FCmpInst::FCMP_OEQ) { in visitSelectInst()
1050 if (FCI->getPredicate() == FCmpInst::FCMP_UNE) { in visitSelectInst()
1067 if (FCI->hasOneUse() && FCmpInst::isUnordered(FCI->getPredicate())) { in visitSelectInst()
[all …]
DInstCombineCompares.cpp4297 Instruction *InstCombiner::FoldFCmp_IntToFP_Cst(FCmpInst &I, in FoldFCmp_IntToFP_Cst()
4313 FCmpInst::Predicate P = I.getPredicate(); in FoldFCmp_IntToFP_Cst()
4325 if (P == FCmpInst::FCMP_OEQ || P == FCmpInst::FCMP_UEQ) in FoldFCmp_IntToFP_Cst()
4328 assert(P == FCmpInst::FCMP_ONE || P == FCmpInst::FCMP_UNE); in FoldFCmp_IntToFP_Cst()
4370 case FCmpInst::FCMP_UEQ: in FoldFCmp_IntToFP_Cst()
4371 case FCmpInst::FCMP_OEQ: in FoldFCmp_IntToFP_Cst()
4374 case FCmpInst::FCMP_UGT: in FoldFCmp_IntToFP_Cst()
4375 case FCmpInst::FCMP_OGT: in FoldFCmp_IntToFP_Cst()
4378 case FCmpInst::FCMP_UGE: in FoldFCmp_IntToFP_Cst()
4379 case FCmpInst::FCMP_OGE: in FoldFCmp_IntToFP_Cst()
[all …]
DInstCombineInternal.h251 Value *FoldAndOfFCmps(FCmpInst *LHS, FCmpInst *RHS);
254 Value *FoldOrOfFCmps(FCmpInst *LHS, FCmpInst *RHS);
265 Instruction *FoldFCmp_IntToFP_Cst(FCmpInst &I, Instruction *LHSI,
270 Instruction *visitFCmpInst(FCmpInst &I);
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombineAndOrXor.cpp27 static unsigned getFCmpCode(FCmpInst::Predicate CC) { in getFCmpCode()
28 assert(FCmpInst::FCMP_FALSE <= CC && CC <= FCmpInst::FCMP_TRUE && in getFCmpCode()
32 static_assert(FCmpInst::FCMP_FALSE == 0, ""); // 0 0 0 0 in getFCmpCode()
33 static_assert(FCmpInst::FCMP_OEQ == 1, ""); // 0 0 0 1 in getFCmpCode()
34 static_assert(FCmpInst::FCMP_OGT == 2, ""); // 0 0 1 0 in getFCmpCode()
35 static_assert(FCmpInst::FCMP_OGE == 3, ""); // 0 0 1 1 in getFCmpCode()
36 static_assert(FCmpInst::FCMP_OLT == 4, ""); // 0 1 0 0 in getFCmpCode()
37 static_assert(FCmpInst::FCMP_OLE == 5, ""); // 0 1 0 1 in getFCmpCode()
38 static_assert(FCmpInst::FCMP_ONE == 6, ""); // 0 1 1 0 in getFCmpCode()
39 static_assert(FCmpInst::FCMP_ORD == 7, ""); // 0 1 1 1 in getFCmpCode()
[all …]
DInstCombineCompares.cpp5684 Instruction *InstCombiner::foldFCmpIntToFPConst(FCmpInst &I, Instruction *LHSI, in foldFCmpIntToFPConst()
5699 FCmpInst::Predicate P = I.getPredicate(); in foldFCmpIntToFPConst()
5711 if (P == FCmpInst::FCMP_OEQ || P == FCmpInst::FCMP_UEQ) in foldFCmpIntToFPConst()
5714 assert(P == FCmpInst::FCMP_ONE || P == FCmpInst::FCMP_UNE); in foldFCmpIntToFPConst()
5756 case FCmpInst::FCMP_UEQ: in foldFCmpIntToFPConst()
5757 case FCmpInst::FCMP_OEQ: in foldFCmpIntToFPConst()
5760 case FCmpInst::FCMP_UGT: in foldFCmpIntToFPConst()
5761 case FCmpInst::FCMP_OGT: in foldFCmpIntToFPConst()
5764 case FCmpInst::FCMP_UGE: in foldFCmpIntToFPConst()
5765 case FCmpInst::FCMP_OGE: in foldFCmpIntToFPConst()
[all …]
/external/llvm-project/llvm/lib/Transforms/InstCombine/
DInstCombineAndOrXor.cpp29 static unsigned getFCmpCode(FCmpInst::Predicate CC) { in getFCmpCode()
30 assert(FCmpInst::FCMP_FALSE <= CC && CC <= FCmpInst::FCMP_TRUE && in getFCmpCode()
34 static_assert(FCmpInst::FCMP_FALSE == 0, ""); // 0 0 0 0 in getFCmpCode()
35 static_assert(FCmpInst::FCMP_OEQ == 1, ""); // 0 0 0 1 in getFCmpCode()
36 static_assert(FCmpInst::FCMP_OGT == 2, ""); // 0 0 1 0 in getFCmpCode()
37 static_assert(FCmpInst::FCMP_OGE == 3, ""); // 0 0 1 1 in getFCmpCode()
38 static_assert(FCmpInst::FCMP_OLT == 4, ""); // 0 1 0 0 in getFCmpCode()
39 static_assert(FCmpInst::FCMP_OLE == 5, ""); // 0 1 0 1 in getFCmpCode()
40 static_assert(FCmpInst::FCMP_ONE == 6, ""); // 0 1 1 0 in getFCmpCode()
41 static_assert(FCmpInst::FCMP_ORD == 7, ""); // 0 1 1 1 in getFCmpCode()
[all …]
DInstCombineCompares.cpp5815 Instruction *InstCombinerImpl::foldFCmpIntToFPConst(FCmpInst &I, in foldFCmpIntToFPConst()
5831 FCmpInst::Predicate P = I.getPredicate(); in foldFCmpIntToFPConst()
5843 if (P == FCmpInst::FCMP_OEQ || P == FCmpInst::FCMP_UEQ) in foldFCmpIntToFPConst()
5846 assert(P == FCmpInst::FCMP_ONE || P == FCmpInst::FCMP_UNE); in foldFCmpIntToFPConst()
5888 case FCmpInst::FCMP_UEQ: in foldFCmpIntToFPConst()
5889 case FCmpInst::FCMP_OEQ: in foldFCmpIntToFPConst()
5892 case FCmpInst::FCMP_UGT: in foldFCmpIntToFPConst()
5893 case FCmpInst::FCMP_OGT: in foldFCmpIntToFPConst()
5896 case FCmpInst::FCMP_UGE: in foldFCmpIntToFPConst()
5897 case FCmpInst::FCMP_OGE: in foldFCmpIntToFPConst()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/Interpreter/
DExecution.cpp663 void Interpreter::visitFCmpInst(FCmpInst &I) { in visitFCmpInst()
675 case FCmpInst::FCMP_FALSE: R = executeFCMP_BOOL(Src1, Src2, Ty, false); in visitFCmpInst()
677 case FCmpInst::FCMP_TRUE: R = executeFCMP_BOOL(Src1, Src2, Ty, true); in visitFCmpInst()
679 case FCmpInst::FCMP_ORD: R = executeFCMP_ORD(Src1, Src2, Ty); break; in visitFCmpInst()
680 case FCmpInst::FCMP_UNO: R = executeFCMP_UNO(Src1, Src2, Ty); break; in visitFCmpInst()
681 case FCmpInst::FCMP_UEQ: R = executeFCMP_UEQ(Src1, Src2, Ty); break; in visitFCmpInst()
682 case FCmpInst::FCMP_OEQ: R = executeFCMP_OEQ(Src1, Src2, Ty); break; in visitFCmpInst()
683 case FCmpInst::FCMP_UNE: R = executeFCMP_UNE(Src1, Src2, Ty); break; in visitFCmpInst()
684 case FCmpInst::FCMP_ONE: R = executeFCMP_ONE(Src1, Src2, Ty); break; in visitFCmpInst()
685 case FCmpInst::FCMP_ULT: R = executeFCMP_ULT(Src1, Src2, Ty); break; in visitFCmpInst()
[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 …]
/external/llvm-project/llvm/lib/ExecutionEngine/Interpreter/
DExecution.cpp665 void Interpreter::visitFCmpInst(FCmpInst &I) { in visitFCmpInst()
677 case FCmpInst::FCMP_FALSE: R = executeFCMP_BOOL(Src1, Src2, Ty, false); in visitFCmpInst()
679 case FCmpInst::FCMP_TRUE: R = executeFCMP_BOOL(Src1, Src2, Ty, true); in visitFCmpInst()
681 case FCmpInst::FCMP_ORD: R = executeFCMP_ORD(Src1, Src2, Ty); break; in visitFCmpInst()
682 case FCmpInst::FCMP_UNO: R = executeFCMP_UNO(Src1, Src2, Ty); break; in visitFCmpInst()
683 case FCmpInst::FCMP_UEQ: R = executeFCMP_UEQ(Src1, Src2, Ty); break; in visitFCmpInst()
684 case FCmpInst::FCMP_OEQ: R = executeFCMP_OEQ(Src1, Src2, Ty); break; in visitFCmpInst()
685 case FCmpInst::FCMP_UNE: R = executeFCMP_UNE(Src1, Src2, Ty); break; in visitFCmpInst()
686 case FCmpInst::FCMP_ONE: R = executeFCMP_ONE(Src1, Src2, Ty); break; in visitFCmpInst()
687 case FCmpInst::FCMP_ULT: R = executeFCMP_ULT(Src1, Src2, Ty); break; in visitFCmpInst()
[all …]
/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 …]
/external/llvm/lib/Target/WebAssembly/
DWebAssemblyFastISel.cpp879 const FCmpInst *FCmp = cast<FCmpInst>(I); in selectFCmp()
893 case FCmpInst::FCMP_OEQ: in selectFCmp()
896 case FCmpInst::FCMP_UNE: in selectFCmp()
899 case FCmpInst::FCMP_OGT: in selectFCmp()
902 case FCmpInst::FCMP_OGE: in selectFCmp()
905 case FCmpInst::FCMP_OLT: in selectFCmp()
908 case FCmpInst::FCMP_OLE: in selectFCmp()
911 case FCmpInst::FCMP_UGT: in selectFCmp()
915 case FCmpInst::FCMP_UGE: in selectFCmp()
919 case FCmpInst::FCMP_ULT: in selectFCmp()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DInstructionSimplify.cpp1798 FCmpInst *LHS, FCmpInst *RHS, bool IsAnd) { in simplifyAndOrOfFCmps()
1804 FCmpInst::Predicate PredL = LHS->getPredicate(), PredR = RHS->getPredicate(); in simplifyAndOrOfFCmps()
1805 if ((PredL == FCmpInst::FCMP_ORD && PredR == FCmpInst::FCMP_ORD && IsAnd) || in simplifyAndOrOfFCmps()
1806 (PredL == FCmpInst::FCMP_UNO && PredR == FCmpInst::FCMP_UNO && !IsAnd)) { in simplifyAndOrOfFCmps()
1853 auto *FCmp0 = dyn_cast<FCmpInst>(Op0); in simplifyAndOrOfCmps()
1854 auto *FCmp1 = dyn_cast<FCmpInst>(Op1); in simplifyAndOrOfCmps()
3534 if (Pred == FCmpInst::FCMP_FALSE) in SimplifyFCmpInst()
3536 if (Pred == FCmpInst::FCMP_TRUE) in SimplifyFCmpInst()
3540 if (Pred == FCmpInst::FCMP_UNO || Pred == FCmpInst::FCMP_ORD) in SimplifyFCmpInst()
3543 return ConstantInt::get(RetTy, Pred == FCmpInst::FCMP_ORD); in SimplifyFCmpInst()
[all …]
/external/llvm-project/llvm/lib/Analysis/
DInstructionSimplify.cpp1858 FCmpInst *LHS, FCmpInst *RHS, bool IsAnd) { in simplifyAndOrOfFCmps()
1864 FCmpInst::Predicate PredL = LHS->getPredicate(), PredR = RHS->getPredicate(); in simplifyAndOrOfFCmps()
1865 if ((PredL == FCmpInst::FCMP_ORD && PredR == FCmpInst::FCMP_ORD && IsAnd) || in simplifyAndOrOfFCmps()
1866 (PredL == FCmpInst::FCMP_UNO && PredR == FCmpInst::FCMP_UNO && !IsAnd)) { in simplifyAndOrOfFCmps()
1913 auto *FCmp0 = dyn_cast<FCmpInst>(Op0); in simplifyAndOrOfCmps()
1914 auto *FCmp1 = dyn_cast<FCmpInst>(Op1); in simplifyAndOrOfCmps()
3621 if (Pred == FCmpInst::FCMP_FALSE) in SimplifyFCmpInst()
3623 if (Pred == FCmpInst::FCMP_TRUE) in SimplifyFCmpInst()
3627 if (Pred == FCmpInst::FCMP_UNO || Pred == FCmpInst::FCMP_ORD) in SimplifyFCmpInst()
3630 return ConstantInt::get(RetTy, Pred == FCmpInst::FCMP_ORD); in SimplifyFCmpInst()
[all …]

123456