Lines Matching full:pred
1083 // cmp pred ^ true -> cmp !pred
1085 CmpInst::Predicate pred = (CmpInst::Predicate)CE1->getPredicate();
1086 pred = CmpInst::getInversePredicate(pred);
1087 return ConstantExpr::getCompare(pred, CE1->getOperand(0),
1431 ICmpInst::Predicate pred = ICmpInst::ICMP_EQ;
1432 R = dyn_cast<ConstantInt>(ConstantExpr::getICmp(pred, V1, V2));
1434 return pred;
1435 pred = isSigned ? ICmpInst::ICMP_SLT : ICmpInst::ICMP_ULT;
1436 R = dyn_cast<ConstantInt>(ConstantExpr::getICmp(pred, V1, V2));
1438 return pred;
1439 pred = isSigned ? ICmpInst::ICMP_SGT : ICmpInst::ICMP_UGT;
1440 R = dyn_cast<ConstantInt>(ConstantExpr::getICmp(pred, V1, V2));
1442 return pred;
1659 Constant *llvm::ConstantFoldCompareInstruction(unsigned short pred,
1669 if (pred == FCmpInst::FCMP_FALSE)
1672 if (pred == FCmpInst::FCMP_TRUE)
1677 CmpInst::Predicate Predicate = CmpInst::Predicate(pred);
1700 if (pred == ICmpInst::ICMP_EQ)
1702 else if (pred == ICmpInst::ICMP_NE)
1710 if (pred == ICmpInst::ICMP_EQ)
1712 else if (pred == ICmpInst::ICMP_NE)
1719 switch(pred) {
1734 switch (pred) {
1751 switch (pred) {
1802 ResElts.push_back(ConstantExpr::getCompare(pred, C1E, C2E));
1828 Result = (pred == FCmpInst::FCMP_UEQ || pred == FCmpInst::FCMP_OEQ ||
1829 pred == FCmpInst::FCMP_ULE || pred == FCmpInst::FCMP_OLE ||
1830 pred == FCmpInst::FCMP_UGE || pred == FCmpInst::FCMP_OGE);
1833 Result = (pred == FCmpInst::FCMP_UNE || pred == FCmpInst::FCMP_ONE ||
1834 pred == FCmpInst::FCMP_ULT || pred == FCmpInst::FCMP_OLT ||
1835 pred == FCmpInst::FCMP_ULE || pred == FCmpInst::FCMP_OLE);
1838 Result = (pred == FCmpInst::FCMP_UNE || pred == FCmpInst::FCMP_ONE ||
1839 pred == FCmpInst::FCMP_UGT || pred == FCmpInst::FCMP_OGT ||
1840 pred == FCmpInst::FCMP_UGE || pred == FCmpInst::FCMP_OGE);
1844 if (pred == FCmpInst::FCMP_UGT || pred == FCmpInst::FCMP_OGT)
1846 else if (pred == FCmpInst::FCMP_ULT || pred == FCmpInst::FCMP_OLT)
1851 if (pred == FCmpInst::FCMP_ULT || pred == FCmpInst::FCMP_OLT)
1853 else if (pred == FCmpInst::FCMP_UGT || pred == FCmpInst::FCMP_OGT)
1858 if (pred == FCmpInst::FCMP_OEQ || pred == FCmpInst::FCMP_UEQ)
1860 else if (pred == FCmpInst::FCMP_ONE || pred == FCmpInst::FCMP_UNE)
1873 CmpInst::isSigned((CmpInst::Predicate)pred))) {
1880 Result = ICmpInst::isTrueWhenEqual((ICmpInst::Predicate)pred);
1883 switch (pred) {
1891 switch (pred) {
1899 switch (pred) {
1907 switch (pred) {
1915 if (pred == ICmpInst::ICMP_UGT) Result = 0;
1916 if (pred == ICmpInst::ICMP_ULT || pred == ICmpInst::ICMP_ULE) Result = 1;
1919 if (pred == ICmpInst::ICMP_SGT) Result = 0;
1920 if (pred == ICmpInst::ICMP_SLT || pred == ICmpInst::ICMP_SLE) Result = 1;
1923 if (pred == ICmpInst::ICMP_ULT) Result = 0;
1924 if (pred == ICmpInst::ICMP_UGT || pred == ICmpInst::ICMP_UGE) Result = 1;
1927 if (pred == ICmpInst::ICMP_SLT) Result = 0;
1928 if (pred == ICmpInst::ICMP_SGT || pred == ICmpInst::ICMP_SGE) Result = 1;
1931 if (pred == ICmpInst::ICMP_EQ) Result = 0;
1932 if (pred == ICmpInst::ICMP_NE) Result = 1;
1948 return ConstantExpr::getICmp(pred, Inverse, CE2Op0);
1955 ICmpInst::isSigned((ICmpInst::Predicate)pred)) ||
1957 !ICmpInst::isSigned((ICmpInst::Predicate)pred))){
1965 return ConstantExpr::getICmp(pred, CE1Inverse, C2Inverse);
1975 pred = ICmpInst::getSwappedPredicate((ICmpInst::Predicate)pred);
1976 return ConstantExpr::getICmp(pred, C2, C1);