Lines Matching refs:Predicate

1107           CmpInst::Predicate pred = (CmpInst::Predicate)CE1->getPredicate();  in ConstantFoldBinaryInstruction()
1319 static FCmpInst::Predicate evaluateFCmpRelation(Constant *V1, Constant *V2) { in evaluateFCmpRelation()
1349 FCmpInst::Predicate SwappedRelation = evaluateFCmpRelation(V2, V1); in evaluateFCmpRelation()
1372 static ICmpInst::Predicate areGlobalsPotentiallyEqual(const GlobalValue *GV1, in areGlobalsPotentiallyEqual()
1408 static ICmpInst::Predicate evaluateICmpRelation(Constant *V1, Constant *V2, in evaluateICmpRelation()
1421 ICmpInst::Predicate pred = ICmpInst::ICMP_EQ; in evaluateICmpRelation()
1439 ICmpInst::Predicate SwappedRelation = in evaluateICmpRelation()
1446 ICmpInst::Predicate SwappedRelation = in evaluateICmpRelation()
1474 ICmpInst::Predicate SwappedRelation = in evaluateICmpRelation()
1581 Constant *llvm::ConstantFoldCompareInstruction(CmpInst::Predicate Predicate, in ConstantFoldCompareInstruction() argument
1591 if (Predicate == FCmpInst::FCMP_FALSE) in ConstantFoldCompareInstruction()
1594 if (Predicate == FCmpInst::FCMP_TRUE) in ConstantFoldCompareInstruction()
1602 bool isIntegerPredicate = ICmpInst::isIntPredicate(Predicate); in ConstantFoldCompareInstruction()
1606 if (ICmpInst::isEquality(Predicate) || (isIntegerPredicate && C1 == C2)) in ConstantFoldCompareInstruction()
1612 return ConstantInt::get(ResultTy, CmpInst::isTrueWhenEqual(Predicate)); in ConstantFoldCompareInstruction()
1616 return ConstantInt::get(ResultTy, CmpInst::isUnordered(Predicate)); in ConstantFoldCompareInstruction()
1626 if (Predicate == ICmpInst::ICMP_EQ) in ConstantFoldCompareInstruction()
1628 else if (Predicate == ICmpInst::ICMP_NE) in ConstantFoldCompareInstruction()
1638 if (Predicate == ICmpInst::ICMP_EQ) in ConstantFoldCompareInstruction()
1640 else if (Predicate == ICmpInst::ICMP_NE) in ConstantFoldCompareInstruction()
1648 if (Predicate == ICmpInst::ICMP_UGE) in ConstantFoldCompareInstruction()
1651 if (Predicate == ICmpInst::ICMP_ULT) in ConstantFoldCompareInstruction()
1657 switch (Predicate) { in ConstantFoldCompareInstruction()
1672 return ConstantInt::get(ResultTy, ICmpInst::compare(V1, V2, Predicate)); in ConstantFoldCompareInstruction()
1676 return ConstantInt::get(ResultTy, FCmpInst::compare(C1V, C2V, Predicate)); in ConstantFoldCompareInstruction()
1684 ConstantExpr::getCompare(Predicate, C1Splat, C2Splat)); in ConstantFoldCompareInstruction()
1703 ResElts.push_back(ConstantExpr::getCompare(Predicate, C1E, C2E)); in ConstantFoldCompareInstruction()
1729 (Predicate == FCmpInst::FCMP_UEQ || Predicate == FCmpInst::FCMP_OEQ || in ConstantFoldCompareInstruction()
1730 Predicate == FCmpInst::FCMP_ULE || Predicate == FCmpInst::FCMP_OLE || in ConstantFoldCompareInstruction()
1731 Predicate == FCmpInst::FCMP_UGE || Predicate == FCmpInst::FCMP_OGE); in ConstantFoldCompareInstruction()
1735 (Predicate == FCmpInst::FCMP_UNE || Predicate == FCmpInst::FCMP_ONE || in ConstantFoldCompareInstruction()
1736 Predicate == FCmpInst::FCMP_ULT || Predicate == FCmpInst::FCMP_OLT || in ConstantFoldCompareInstruction()
1737 Predicate == FCmpInst::FCMP_ULE || Predicate == FCmpInst::FCMP_OLE); in ConstantFoldCompareInstruction()
1741 (Predicate == FCmpInst::FCMP_UNE || Predicate == FCmpInst::FCMP_ONE || in ConstantFoldCompareInstruction()
1742 Predicate == FCmpInst::FCMP_UGT || Predicate == FCmpInst::FCMP_OGT || in ConstantFoldCompareInstruction()
1743 Predicate == FCmpInst::FCMP_UGE || Predicate == FCmpInst::FCMP_OGE); in ConstantFoldCompareInstruction()
1747 if (Predicate == FCmpInst::FCMP_UGT || Predicate == FCmpInst::FCMP_OGT) in ConstantFoldCompareInstruction()
1749 else if (Predicate == FCmpInst::FCMP_ULT || in ConstantFoldCompareInstruction()
1750 Predicate == FCmpInst::FCMP_OLT) in ConstantFoldCompareInstruction()
1755 if (Predicate == FCmpInst::FCMP_ULT || Predicate == FCmpInst::FCMP_OLT) in ConstantFoldCompareInstruction()
1757 else if (Predicate == FCmpInst::FCMP_UGT || in ConstantFoldCompareInstruction()
1758 Predicate == FCmpInst::FCMP_OGT) in ConstantFoldCompareInstruction()
1763 if (Predicate == FCmpInst::FCMP_OEQ || Predicate == FCmpInst::FCMP_UEQ) in ConstantFoldCompareInstruction()
1765 else if (Predicate == FCmpInst::FCMP_ONE || in ConstantFoldCompareInstruction()
1766 Predicate == FCmpInst::FCMP_UNE) in ConstantFoldCompareInstruction()
1771 if (Predicate == FCmpInst::FCMP_ONE) in ConstantFoldCompareInstruction()
1773 else if (Predicate == FCmpInst::FCMP_UEQ) in ConstantFoldCompareInstruction()
1785 switch (evaluateICmpRelation(C1, C2, CmpInst::isSigned(Predicate))) { in ConstantFoldCompareInstruction()
1792 Result = ICmpInst::isTrueWhenEqual(Predicate); in ConstantFoldCompareInstruction()
1795 switch (Predicate) { in ConstantFoldCompareInstruction()
1805 switch (Predicate) { in ConstantFoldCompareInstruction()
1815 switch (Predicate) { in ConstantFoldCompareInstruction()
1825 switch (Predicate) { in ConstantFoldCompareInstruction()
1835 if (Predicate == ICmpInst::ICMP_UGT) in ConstantFoldCompareInstruction()
1837 if (Predicate == ICmpInst::ICMP_ULT || Predicate == ICmpInst::ICMP_ULE) in ConstantFoldCompareInstruction()
1841 if (Predicate == ICmpInst::ICMP_SGT) in ConstantFoldCompareInstruction()
1843 if (Predicate == ICmpInst::ICMP_SLT || Predicate == ICmpInst::ICMP_SLE) in ConstantFoldCompareInstruction()
1847 if (Predicate == ICmpInst::ICMP_ULT) in ConstantFoldCompareInstruction()
1849 if (Predicate == ICmpInst::ICMP_UGT || Predicate == ICmpInst::ICMP_UGE) in ConstantFoldCompareInstruction()
1853 if (Predicate == ICmpInst::ICMP_SLT) in ConstantFoldCompareInstruction()
1855 if (Predicate == ICmpInst::ICMP_SGT || Predicate == ICmpInst::ICMP_SGE) in ConstantFoldCompareInstruction()
1859 if (Predicate == ICmpInst::ICMP_EQ) in ConstantFoldCompareInstruction()
1861 if (Predicate == ICmpInst::ICMP_NE) in ConstantFoldCompareInstruction()
1880 return ConstantExpr::getICmp(Predicate, Inverse, CE2Op0); in ConstantFoldCompareInstruction()
1887 ICmpInst::isSigned(Predicate)) || in ConstantFoldCompareInstruction()
1889 !ICmpInst::isSigned(Predicate))) { in ConstantFoldCompareInstruction()
1897 return ConstantExpr::getICmp(Predicate, CE1Inverse, C2Inverse); in ConstantFoldCompareInstruction()
1907 Predicate = ICmpInst::getSwappedPredicate(Predicate); in ConstantFoldCompareInstruction()
1908 return ConstantExpr::getICmp(Predicate, C2, C1); in ConstantFoldCompareInstruction()