Lines Matching refs:pred

1112           CmpInst::Predicate pred = (CmpInst::Predicate)CE1->getPredicate();  in ConstantFoldBinaryInstruction()  local
1113 pred = CmpInst::getInversePredicate(pred); in ConstantFoldBinaryInstruction()
1114 return ConstantExpr::getCompare(pred, CE1->getOperand(0), in ConstantFoldBinaryInstruction()
1460 ICmpInst::Predicate pred = ICmpInst::ICMP_EQ; in evaluateICmpRelation() local
1461 R = dyn_cast<ConstantInt>(ConstantExpr::getICmp(pred, V1, V2)); in evaluateICmpRelation()
1463 return pred; in evaluateICmpRelation()
1464 pred = isSigned ? ICmpInst::ICMP_SLT : ICmpInst::ICMP_ULT; in evaluateICmpRelation()
1465 R = dyn_cast<ConstantInt>(ConstantExpr::getICmp(pred, V1, V2)); in evaluateICmpRelation()
1467 return pred; in evaluateICmpRelation()
1468 pred = isSigned ? ICmpInst::ICMP_SGT : ICmpInst::ICMP_UGT; in evaluateICmpRelation()
1469 R = dyn_cast<ConstantInt>(ConstantExpr::getICmp(pred, V1, V2)); in evaluateICmpRelation()
1471 return pred; in evaluateICmpRelation()
1697 Constant *llvm::ConstantFoldCompareInstruction(unsigned short pred, in ConstantFoldCompareInstruction() argument
1707 if (pred == FCmpInst::FCMP_FALSE) in ConstantFoldCompareInstruction()
1710 if (pred == FCmpInst::FCMP_TRUE) in ConstantFoldCompareInstruction()
1715 CmpInst::Predicate Predicate = CmpInst::Predicate(pred); in ConstantFoldCompareInstruction()
1740 if (pred == ICmpInst::ICMP_EQ) in ConstantFoldCompareInstruction()
1742 else if (pred == ICmpInst::ICMP_NE) in ConstantFoldCompareInstruction()
1752 if (pred == ICmpInst::ICMP_EQ) in ConstantFoldCompareInstruction()
1754 else if (pred == ICmpInst::ICMP_NE) in ConstantFoldCompareInstruction()
1761 switch(pred) { in ConstantFoldCompareInstruction()
1776 switch (pred) { in ConstantFoldCompareInstruction()
1793 switch (pred) { in ConstantFoldCompareInstruction()
1844 ResElts.push_back(ConstantExpr::getCompare(pred, C1E, C2E)); in ConstantFoldCompareInstruction()
1870 Result = (pred == FCmpInst::FCMP_UEQ || pred == FCmpInst::FCMP_OEQ || in ConstantFoldCompareInstruction()
1871 pred == FCmpInst::FCMP_ULE || pred == FCmpInst::FCMP_OLE || in ConstantFoldCompareInstruction()
1872 pred == FCmpInst::FCMP_UGE || pred == FCmpInst::FCMP_OGE); in ConstantFoldCompareInstruction()
1875 Result = (pred == FCmpInst::FCMP_UNE || pred == FCmpInst::FCMP_ONE || in ConstantFoldCompareInstruction()
1876 pred == FCmpInst::FCMP_ULT || pred == FCmpInst::FCMP_OLT || in ConstantFoldCompareInstruction()
1877 pred == FCmpInst::FCMP_ULE || pred == FCmpInst::FCMP_OLE); in ConstantFoldCompareInstruction()
1880 Result = (pred == FCmpInst::FCMP_UNE || pred == FCmpInst::FCMP_ONE || in ConstantFoldCompareInstruction()
1881 pred == FCmpInst::FCMP_UGT || pred == FCmpInst::FCMP_OGT || in ConstantFoldCompareInstruction()
1882 pred == FCmpInst::FCMP_UGE || pred == FCmpInst::FCMP_OGE); in ConstantFoldCompareInstruction()
1886 if (pred == FCmpInst::FCMP_UGT || pred == FCmpInst::FCMP_OGT) in ConstantFoldCompareInstruction()
1888 else if (pred == FCmpInst::FCMP_ULT || pred == FCmpInst::FCMP_OLT) in ConstantFoldCompareInstruction()
1893 if (pred == FCmpInst::FCMP_ULT || pred == FCmpInst::FCMP_OLT) in ConstantFoldCompareInstruction()
1895 else if (pred == FCmpInst::FCMP_UGT || pred == FCmpInst::FCMP_OGT) in ConstantFoldCompareInstruction()
1900 if (pred == FCmpInst::FCMP_OEQ || pred == FCmpInst::FCMP_UEQ) in ConstantFoldCompareInstruction()
1902 else if (pred == FCmpInst::FCMP_ONE || pred == FCmpInst::FCMP_UNE) in ConstantFoldCompareInstruction()
1915 CmpInst::isSigned((CmpInst::Predicate)pred))) { in ConstantFoldCompareInstruction()
1922 Result = ICmpInst::isTrueWhenEqual((ICmpInst::Predicate)pred); in ConstantFoldCompareInstruction()
1925 switch (pred) { in ConstantFoldCompareInstruction()
1933 switch (pred) { in ConstantFoldCompareInstruction()
1941 switch (pred) { in ConstantFoldCompareInstruction()
1949 switch (pred) { in ConstantFoldCompareInstruction()
1957 if (pred == ICmpInst::ICMP_UGT) Result = 0; in ConstantFoldCompareInstruction()
1958 if (pred == ICmpInst::ICMP_ULT || pred == ICmpInst::ICMP_ULE) Result = 1; in ConstantFoldCompareInstruction()
1961 if (pred == ICmpInst::ICMP_SGT) Result = 0; in ConstantFoldCompareInstruction()
1962 if (pred == ICmpInst::ICMP_SLT || pred == ICmpInst::ICMP_SLE) Result = 1; in ConstantFoldCompareInstruction()
1965 if (pred == ICmpInst::ICMP_ULT) Result = 0; in ConstantFoldCompareInstruction()
1966 if (pred == ICmpInst::ICMP_UGT || pred == ICmpInst::ICMP_UGE) Result = 1; in ConstantFoldCompareInstruction()
1969 if (pred == ICmpInst::ICMP_SLT) Result = 0; in ConstantFoldCompareInstruction()
1970 if (pred == ICmpInst::ICMP_SGT || pred == ICmpInst::ICMP_SGE) Result = 1; in ConstantFoldCompareInstruction()
1973 if (pred == ICmpInst::ICMP_EQ) Result = 0; in ConstantFoldCompareInstruction()
1974 if (pred == ICmpInst::ICMP_NE) Result = 1; in ConstantFoldCompareInstruction()
1990 return ConstantExpr::getICmp(pred, Inverse, CE2Op0); in ConstantFoldCompareInstruction()
1997 ICmpInst::isSigned((ICmpInst::Predicate)pred)) || in ConstantFoldCompareInstruction()
1999 !ICmpInst::isSigned((ICmpInst::Predicate)pred))){ in ConstantFoldCompareInstruction()
2007 return ConstantExpr::getICmp(pred, CE1Inverse, C2Inverse); in ConstantFoldCompareInstruction()
2017 pred = ICmpInst::getSwappedPredicate((ICmpInst::Predicate)pred); in ConstantFoldCompareInstruction()
2018 return ConstantExpr::getICmp(pred, C2, C1); in ConstantFoldCompareInstruction()