Lines Matching refs:pred
1103 CmpInst::Predicate pred = (CmpInst::Predicate)CE1->getPredicate(); in ConstantFoldBinaryInstruction() local
1104 pred = CmpInst::getInversePredicate(pred); in ConstantFoldBinaryInstruction()
1105 return ConstantExpr::getCompare(pred, CE1->getOperand(0), in ConstantFoldBinaryInstruction()
1465 ICmpInst::Predicate pred = ICmpInst::ICMP_EQ; in evaluateICmpRelation() local
1466 R = dyn_cast<ConstantInt>(ConstantExpr::getICmp(pred, V1, V2)); in evaluateICmpRelation()
1468 return pred; in evaluateICmpRelation()
1469 pred = isSigned ? ICmpInst::ICMP_SLT : ICmpInst::ICMP_ULT; in evaluateICmpRelation()
1470 R = dyn_cast<ConstantInt>(ConstantExpr::getICmp(pred, V1, V2)); in evaluateICmpRelation()
1472 return pred; in evaluateICmpRelation()
1473 pred = isSigned ? ICmpInst::ICMP_SGT : ICmpInst::ICMP_UGT; in evaluateICmpRelation()
1474 R = dyn_cast<ConstantInt>(ConstantExpr::getICmp(pred, V1, V2)); in evaluateICmpRelation()
1476 return pred; in evaluateICmpRelation()
1700 Constant *llvm::ConstantFoldCompareInstruction(unsigned short pred, in ConstantFoldCompareInstruction() argument
1710 if (pred == FCmpInst::FCMP_FALSE) in ConstantFoldCompareInstruction()
1713 if (pred == FCmpInst::FCMP_TRUE) in ConstantFoldCompareInstruction()
1721 CmpInst::Predicate Predicate = CmpInst::Predicate(pred); in ConstantFoldCompareInstruction()
1746 if (pred == ICmpInst::ICMP_EQ) in ConstantFoldCompareInstruction()
1748 else if (pred == ICmpInst::ICMP_NE) in ConstantFoldCompareInstruction()
1758 if (pred == ICmpInst::ICMP_EQ) in ConstantFoldCompareInstruction()
1760 else if (pred == ICmpInst::ICMP_NE) in ConstantFoldCompareInstruction()
1768 if (pred == ICmpInst::ICMP_UGE) in ConstantFoldCompareInstruction()
1771 if (pred == ICmpInst::ICMP_ULT) in ConstantFoldCompareInstruction()
1777 switch(pred) { in ConstantFoldCompareInstruction()
1792 switch (pred) { in ConstantFoldCompareInstruction()
1809 switch (pred) { in ConstantFoldCompareInstruction()
1855 ConstantExpr::getCompare(pred, C1Splat, C2Splat)); in ConstantFoldCompareInstruction()
1874 ResElts.push_back(ConstantExpr::getCompare(pred, C1E, C2E)); in ConstantFoldCompareInstruction()
1899 Result = (pred == FCmpInst::FCMP_UEQ || pred == FCmpInst::FCMP_OEQ || in ConstantFoldCompareInstruction()
1900 pred == FCmpInst::FCMP_ULE || pred == FCmpInst::FCMP_OLE || in ConstantFoldCompareInstruction()
1901 pred == FCmpInst::FCMP_UGE || pred == FCmpInst::FCMP_OGE); in ConstantFoldCompareInstruction()
1904 Result = (pred == FCmpInst::FCMP_UNE || pred == FCmpInst::FCMP_ONE || in ConstantFoldCompareInstruction()
1905 pred == FCmpInst::FCMP_ULT || pred == FCmpInst::FCMP_OLT || in ConstantFoldCompareInstruction()
1906 pred == FCmpInst::FCMP_ULE || pred == FCmpInst::FCMP_OLE); in ConstantFoldCompareInstruction()
1909 Result = (pred == FCmpInst::FCMP_UNE || pred == FCmpInst::FCMP_ONE || in ConstantFoldCompareInstruction()
1910 pred == FCmpInst::FCMP_UGT || pred == FCmpInst::FCMP_OGT || in ConstantFoldCompareInstruction()
1911 pred == FCmpInst::FCMP_UGE || pred == FCmpInst::FCMP_OGE); in ConstantFoldCompareInstruction()
1915 if (pred == FCmpInst::FCMP_UGT || pred == FCmpInst::FCMP_OGT) in ConstantFoldCompareInstruction()
1917 else if (pred == FCmpInst::FCMP_ULT || pred == FCmpInst::FCMP_OLT) in ConstantFoldCompareInstruction()
1922 if (pred == FCmpInst::FCMP_ULT || pred == FCmpInst::FCMP_OLT) in ConstantFoldCompareInstruction()
1924 else if (pred == FCmpInst::FCMP_UGT || pred == FCmpInst::FCMP_OGT) in ConstantFoldCompareInstruction()
1929 if (pred == FCmpInst::FCMP_OEQ || pred == FCmpInst::FCMP_UEQ) in ConstantFoldCompareInstruction()
1931 else if (pred == FCmpInst::FCMP_ONE || pred == FCmpInst::FCMP_UNE) in ConstantFoldCompareInstruction()
1936 if (pred == FCmpInst::FCMP_ONE) in ConstantFoldCompareInstruction()
1938 else if (pred == FCmpInst::FCMP_UEQ) in ConstantFoldCompareInstruction()
1951 CmpInst::isSigned((CmpInst::Predicate)pred))) { in ConstantFoldCompareInstruction()
1958 Result = ICmpInst::isTrueWhenEqual((ICmpInst::Predicate)pred); in ConstantFoldCompareInstruction()
1961 switch (pred) { in ConstantFoldCompareInstruction()
1969 switch (pred) { in ConstantFoldCompareInstruction()
1977 switch (pred) { in ConstantFoldCompareInstruction()
1985 switch (pred) { in ConstantFoldCompareInstruction()
1993 if (pred == ICmpInst::ICMP_UGT) Result = 0; in ConstantFoldCompareInstruction()
1994 if (pred == ICmpInst::ICMP_ULT || pred == ICmpInst::ICMP_ULE) Result = 1; in ConstantFoldCompareInstruction()
1997 if (pred == ICmpInst::ICMP_SGT) Result = 0; in ConstantFoldCompareInstruction()
1998 if (pred == ICmpInst::ICMP_SLT || pred == ICmpInst::ICMP_SLE) Result = 1; in ConstantFoldCompareInstruction()
2001 if (pred == ICmpInst::ICMP_ULT) Result = 0; in ConstantFoldCompareInstruction()
2002 if (pred == ICmpInst::ICMP_UGT || pred == ICmpInst::ICMP_UGE) Result = 1; in ConstantFoldCompareInstruction()
2005 if (pred == ICmpInst::ICMP_SLT) Result = 0; in ConstantFoldCompareInstruction()
2006 if (pred == ICmpInst::ICMP_SGT || pred == ICmpInst::ICMP_SGE) Result = 1; in ConstantFoldCompareInstruction()
2009 if (pred == ICmpInst::ICMP_EQ) Result = 0; in ConstantFoldCompareInstruction()
2010 if (pred == ICmpInst::ICMP_NE) Result = 1; in ConstantFoldCompareInstruction()
2028 return ConstantExpr::getICmp(pred, Inverse, CE2Op0); in ConstantFoldCompareInstruction()
2035 ICmpInst::isSigned((ICmpInst::Predicate)pred)) || in ConstantFoldCompareInstruction()
2037 !ICmpInst::isSigned((ICmpInst::Predicate)pred))){ in ConstantFoldCompareInstruction()
2045 return ConstantExpr::getICmp(pred, CE1Inverse, C2Inverse); in ConstantFoldCompareInstruction()
2055 pred = ICmpInst::getSwappedPredicate((ICmpInst::Predicate)pred); in ConstantFoldCompareInstruction()
2056 return ConstantExpr::getICmp(pred, C2, C1); in ConstantFoldCompareInstruction()