• Home
  • Raw
  • Download

Lines Matching refs:FCmpInst

43 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()
56 static_assert(FCmpInst::FCMP_UNO == 8, ""); // 1 0 0 0 in getFCmpCode()
57 static_assert(FCmpInst::FCMP_UEQ == 9, ""); // 1 0 0 1 in getFCmpCode()
58 static_assert(FCmpInst::FCMP_UGT == 10, ""); // 1 0 1 0 in getFCmpCode()
59 static_assert(FCmpInst::FCMP_UGE == 11, ""); // 1 0 1 1 in getFCmpCode()
60 static_assert(FCmpInst::FCMP_ULT == 12, ""); // 1 1 0 0 in getFCmpCode()
61 static_assert(FCmpInst::FCMP_ULE == 13, ""); // 1 1 0 1 in getFCmpCode()
62 static_assert(FCmpInst::FCMP_UNE == 14, ""); // 1 1 1 0 in getFCmpCode()
63 static_assert(FCmpInst::FCMP_TRUE == 15, ""); // 1 1 1 1 in getFCmpCode()
83 const auto Pred = static_cast<FCmpInst::Predicate>(Code); in getFCmpValue()
84 assert(FCmpInst::FCMP_FALSE <= Pred && Pred <= FCmpInst::FCMP_TRUE && in getFCmpValue()
86 if (Pred == FCmpInst::FCMP_FALSE) in getFCmpValue()
88 if (Pred == FCmpInst::FCMP_TRUE) in getFCmpValue()
1098 Value *InstCombiner::FoldAndOfFCmps(FCmpInst *LHS, FCmpInst *RHS) { in FoldAndOfFCmps()
1101 FCmpInst::Predicate Op0CC = LHS->getPredicate(), Op1CC = RHS->getPredicate(); in FoldAndOfFCmps()
1105 Op1CC = FCmpInst::getSwappedPredicate(Op1CC); in FoldAndOfFCmps()
1122 if (LHS->getPredicate() == FCmpInst::FCMP_ORD && in FoldAndOfFCmps()
1123 RHS->getPredicate() == FCmpInst::FCMP_ORD) { in FoldAndOfFCmps()
1269 FCmpInst *FCmp0 = dyn_cast<FCmpInst>(Cast0Src); in foldCastedBitwiseLogic()
1270 FCmpInst *FCmp1 = dyn_cast<FCmpInst>(Cast1Src); in foldCastedBitwiseLogic()
1540 if (FCmpInst *LHS = dyn_cast<FCmpInst>(I.getOperand(0))) in visitAnd()
1541 if (FCmpInst *RHS = dyn_cast<FCmpInst>(I.getOperand(1))) in visitAnd()
2012 Value *InstCombiner::FoldOrOfFCmps(FCmpInst *LHS, FCmpInst *RHS) { in FoldOrOfFCmps()
2015 FCmpInst::Predicate Op0CC = LHS->getPredicate(), Op1CC = RHS->getPredicate(); in FoldOrOfFCmps()
2019 Op1CC = FCmpInst::getSwappedPredicate(Op1CC); in FoldOrOfFCmps()
2034 if (LHS->getPredicate() == FCmpInst::FCMP_UNO && in FoldOrOfFCmps()
2035 RHS->getPredicate() == FCmpInst::FCMP_UNO && in FoldOrOfFCmps()
2430 if (FCmpInst *LHS = dyn_cast<FCmpInst>(I.getOperand(0))) in visitOr()
2431 if (FCmpInst *RHS = dyn_cast<FCmpInst>(I.getOperand(1))) in visitOr()