• Home
  • Raw
  • Download

Lines Matching refs:FCmpInst

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()
1562 FCmpInst::Predicate SwappedRelation = evaluateFCmpRelation(V2, V1); in evaluateFCmpRelation()
1563 if (SwappedRelation != FCmpInst::BAD_FCMP_PREDICATE) in evaluateFCmpRelation()
1564 return FCmpInst::getSwappedPredicate(SwappedRelation); in evaluateFCmpRelation()
1582 return FCmpInst::BAD_FCMP_PREDICATE; in evaluateFCmpRelation()
1843 if (pred == FCmpInst::FCMP_FALSE) in ConstantFoldCompareInstruction()
1846 if (pred == FCmpInst::FCMP_TRUE) in ConstantFoldCompareInstruction()
1924 case FCmpInst::FCMP_FALSE: return Constant::getNullValue(ResultTy); in ConstantFoldCompareInstruction()
1925 case FCmpInst::FCMP_TRUE: return Constant::getAllOnesValue(ResultTy); in ConstantFoldCompareInstruction()
1926 case FCmpInst::FCMP_UNO: in ConstantFoldCompareInstruction()
1928 case FCmpInst::FCMP_ORD: in ConstantFoldCompareInstruction()
1930 case FCmpInst::FCMP_UEQ: in ConstantFoldCompareInstruction()
1933 case FCmpInst::FCMP_OEQ: in ConstantFoldCompareInstruction()
1935 case FCmpInst::FCMP_UNE: in ConstantFoldCompareInstruction()
1937 case FCmpInst::FCMP_ONE: in ConstantFoldCompareInstruction()
1940 case FCmpInst::FCMP_ULT: in ConstantFoldCompareInstruction()
1943 case FCmpInst::FCMP_OLT: in ConstantFoldCompareInstruction()
1945 case FCmpInst::FCMP_UGT: in ConstantFoldCompareInstruction()
1948 case FCmpInst::FCMP_OGT: in ConstantFoldCompareInstruction()
1950 case FCmpInst::FCMP_ULE: in ConstantFoldCompareInstruction()
1952 case FCmpInst::FCMP_OLE: in ConstantFoldCompareInstruction()
1955 case FCmpInst::FCMP_UGE: in ConstantFoldCompareInstruction()
1957 case FCmpInst::FCMP_OGE: in ConstantFoldCompareInstruction()
1982 case FCmpInst::FCMP_UNO: in ConstantFoldCompareInstruction()
1983 case FCmpInst::FCMP_ORD: in ConstantFoldCompareInstruction()
1984 case FCmpInst::FCMP_UEQ: in ConstantFoldCompareInstruction()
1985 case FCmpInst::FCMP_UNE: in ConstantFoldCompareInstruction()
1986 case FCmpInst::FCMP_ULT: in ConstantFoldCompareInstruction()
1987 case FCmpInst::FCMP_UGT: in ConstantFoldCompareInstruction()
1988 case FCmpInst::FCMP_ULE: in ConstantFoldCompareInstruction()
1989 case FCmpInst::FCMP_UGE: in ConstantFoldCompareInstruction()
1990 case FCmpInst::FCMP_TRUE: in ConstantFoldCompareInstruction()
1991 case FCmpInst::FCMP_FALSE: in ConstantFoldCompareInstruction()
1992 case FCmpInst::BAD_FCMP_PREDICATE: in ConstantFoldCompareInstruction()
1994 case FCmpInst::FCMP_OEQ: // We know that C1 == C2 in ConstantFoldCompareInstruction()
1995 Result = (pred == FCmpInst::FCMP_UEQ || pred == FCmpInst::FCMP_OEQ || in ConstantFoldCompareInstruction()
1996 pred == FCmpInst::FCMP_ULE || pred == FCmpInst::FCMP_OLE || in ConstantFoldCompareInstruction()
1997 pred == FCmpInst::FCMP_UGE || pred == FCmpInst::FCMP_OGE); in ConstantFoldCompareInstruction()
1999 case FCmpInst::FCMP_OLT: // We know that C1 < C2 in ConstantFoldCompareInstruction()
2000 Result = (pred == FCmpInst::FCMP_UNE || pred == FCmpInst::FCMP_ONE || in ConstantFoldCompareInstruction()
2001 pred == FCmpInst::FCMP_ULT || pred == FCmpInst::FCMP_OLT || in ConstantFoldCompareInstruction()
2002 pred == FCmpInst::FCMP_ULE || pred == FCmpInst::FCMP_OLE); in ConstantFoldCompareInstruction()
2004 case FCmpInst::FCMP_OGT: // We know that C1 > C2 in ConstantFoldCompareInstruction()
2005 Result = (pred == FCmpInst::FCMP_UNE || pred == FCmpInst::FCMP_ONE || in ConstantFoldCompareInstruction()
2006 pred == FCmpInst::FCMP_UGT || pred == FCmpInst::FCMP_OGT || in ConstantFoldCompareInstruction()
2007 pred == FCmpInst::FCMP_UGE || pred == FCmpInst::FCMP_OGE); in ConstantFoldCompareInstruction()
2009 case FCmpInst::FCMP_OLE: // We know that C1 <= C2 in ConstantFoldCompareInstruction()
2011 if (pred == FCmpInst::FCMP_UGT || pred == FCmpInst::FCMP_OGT) in ConstantFoldCompareInstruction()
2013 else if (pred == FCmpInst::FCMP_ULT || pred == FCmpInst::FCMP_OLT) in ConstantFoldCompareInstruction()
2016 case FCmpInst::FCMP_OGE: // We known that C1 >= C2 in ConstantFoldCompareInstruction()
2018 if (pred == FCmpInst::FCMP_ULT || pred == FCmpInst::FCMP_OLT) in ConstantFoldCompareInstruction()
2020 else if (pred == FCmpInst::FCMP_UGT || pred == FCmpInst::FCMP_OGT) in ConstantFoldCompareInstruction()
2023 case FCmpInst::FCMP_ONE: // We know that C1 != C2 in ConstantFoldCompareInstruction()
2025 if (pred == FCmpInst::FCMP_OEQ || pred == FCmpInst::FCMP_UEQ) in ConstantFoldCompareInstruction()
2027 else if (pred == FCmpInst::FCMP_ONE || pred == FCmpInst::FCMP_UNE) in ConstantFoldCompareInstruction()