Lines Matching refs:pred

1077           // cmp pred ^ true -> cmp !pred
1079 CmpInst::Predicate pred = (CmpInst::Predicate)CE1->getPredicate();
1080 pred = CmpInst::getInversePredicate(pred);
1081 return ConstantExpr::getCompare(pred, CE1->getOperand(0),
1425 ICmpInst::Predicate pred = ICmpInst::ICMP_EQ;
1426 R = dyn_cast<ConstantInt>(ConstantExpr::getICmp(pred, V1, V2));
1428 return pred;
1429 pred = isSigned ? ICmpInst::ICMP_SLT : ICmpInst::ICMP_ULT;
1430 R = dyn_cast<ConstantInt>(ConstantExpr::getICmp(pred, V1, V2));
1432 return pred;
1433 pred = isSigned ? ICmpInst::ICMP_SGT : ICmpInst::ICMP_UGT;
1434 R = dyn_cast<ConstantInt>(ConstantExpr::getICmp(pred, V1, V2));
1436 return pred;
1653 Constant *llvm::ConstantFoldCompareInstruction(unsigned short pred,
1663 if (pred == FCmpInst::FCMP_FALSE)
1666 if (pred == FCmpInst::FCMP_TRUE)
1671 CmpInst::Predicate Predicate = CmpInst::Predicate(pred);
1682 return ConstantInt::get(ResultTy, CmpInst::isTrueWhenEqual(pred));
1694 if (pred == ICmpInst::ICMP_EQ)
1696 else if (pred == ICmpInst::ICMP_NE)
1704 if (pred == ICmpInst::ICMP_EQ)
1706 else if (pred == ICmpInst::ICMP_NE)
1713 switch(pred) {
1728 switch (pred) {
1745 switch (pred) {
1796 ResElts.push_back(ConstantExpr::getCompare(pred, C1E, C2E));
1822 Result = (pred == FCmpInst::FCMP_UEQ || pred == FCmpInst::FCMP_OEQ ||
1823 pred == FCmpInst::FCMP_ULE || pred == FCmpInst::FCMP_OLE ||
1824 pred == FCmpInst::FCMP_UGE || pred == FCmpInst::FCMP_OGE);
1827 Result = (pred == FCmpInst::FCMP_UNE || pred == FCmpInst::FCMP_ONE ||
1828 pred == FCmpInst::FCMP_ULT || pred == FCmpInst::FCMP_OLT ||
1829 pred == FCmpInst::FCMP_ULE || pred == FCmpInst::FCMP_OLE);
1832 Result = (pred == FCmpInst::FCMP_UNE || pred == FCmpInst::FCMP_ONE ||
1833 pred == FCmpInst::FCMP_UGT || pred == FCmpInst::FCMP_OGT ||
1834 pred == FCmpInst::FCMP_UGE || pred == FCmpInst::FCMP_OGE);
1838 if (pred == FCmpInst::FCMP_UGT || pred == FCmpInst::FCMP_OGT)
1840 else if (pred == FCmpInst::FCMP_ULT || pred == FCmpInst::FCMP_OLT)
1845 if (pred == FCmpInst::FCMP_ULT || pred == FCmpInst::FCMP_OLT)
1847 else if (pred == FCmpInst::FCMP_UGT || pred == FCmpInst::FCMP_OGT)
1852 if (pred == FCmpInst::FCMP_OEQ || pred == FCmpInst::FCMP_UEQ)
1854 else if (pred == FCmpInst::FCMP_ONE || pred == FCmpInst::FCMP_UNE)
1866 switch (evaluateICmpRelation(C1, C2, CmpInst::isSigned(pred))) {
1873 Result = ICmpInst::isTrueWhenEqual((ICmpInst::Predicate)pred);
1876 switch (pred) {
1884 switch (pred) {
1892 switch (pred) {
1900 switch (pred) {
1908 if (pred == ICmpInst::ICMP_UGT) Result = 0;
1909 if (pred == ICmpInst::ICMP_ULT || pred == ICmpInst::ICMP_ULE) Result = 1;
1912 if (pred == ICmpInst::ICMP_SGT) Result = 0;
1913 if (pred == ICmpInst::ICMP_SLT || pred == ICmpInst::ICMP_SLE) Result = 1;
1916 if (pred == ICmpInst::ICMP_ULT) Result = 0;
1917 if (pred == ICmpInst::ICMP_UGT || pred == ICmpInst::ICMP_UGE) Result = 1;
1920 if (pred == ICmpInst::ICMP_SLT) Result = 0;
1921 if (pred == ICmpInst::ICMP_SGT || pred == ICmpInst::ICMP_SGE) Result = 1;
1924 if (pred == ICmpInst::ICMP_EQ) Result = 0;
1925 if (pred == ICmpInst::ICMP_NE) Result = 1;
1941 return ConstantExpr::getICmp(pred, Inverse, CE2Op0);
1947 if ((CE1->getOpcode() == Instruction::SExt && ICmpInst::isSigned(pred)) ||
1948 (CE1->getOpcode() == Instruction::ZExt && !ICmpInst::isSigned(pred))){
1956 return ConstantExpr::getICmp(pred, CE1Inverse, C2Inverse);
1966 pred = ICmpInst::getSwappedPredicate((ICmpInst::Predicate)pred);
1967 return ConstantExpr::getICmp(pred, C2, C1);