reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

lib/IR/ConstantFold.cpp
 1795   if (pred == FCmpInst::FCMP_FALSE)
 1798   if (pred == FCmpInst::FCMP_TRUE)
 1803     CmpInst::Predicate Predicate = CmpInst::Predicate(pred);
 1828         if (pred == ICmpInst::ICMP_EQ)
 1830         else if (pred == ICmpInst::ICMP_NE)
 1840         if (pred == ICmpInst::ICMP_EQ)
 1842         else if (pred == ICmpInst::ICMP_NE)
 1849     switch(pred) {
 1864     switch (pred) {
 1881     switch (pred) {
 1932       ResElts.push_back(ConstantExpr::getCompare(pred, C1E, C2E));
 1957       Result = (pred == FCmpInst::FCMP_UEQ || pred == FCmpInst::FCMP_OEQ ||
 1957       Result = (pred == FCmpInst::FCMP_UEQ || pred == FCmpInst::FCMP_OEQ ||
 1958                 pred == FCmpInst::FCMP_ULE || pred == FCmpInst::FCMP_OLE ||
 1958                 pred == FCmpInst::FCMP_ULE || pred == FCmpInst::FCMP_OLE ||
 1959                 pred == FCmpInst::FCMP_UGE || pred == FCmpInst::FCMP_OGE);
 1959                 pred == FCmpInst::FCMP_UGE || pred == FCmpInst::FCMP_OGE);
 1962       Result = (pred == FCmpInst::FCMP_UNE || pred == FCmpInst::FCMP_ONE ||
 1962       Result = (pred == FCmpInst::FCMP_UNE || pred == FCmpInst::FCMP_ONE ||
 1963                 pred == FCmpInst::FCMP_ULT || pred == FCmpInst::FCMP_OLT ||
 1963                 pred == FCmpInst::FCMP_ULT || pred == FCmpInst::FCMP_OLT ||
 1964                 pred == FCmpInst::FCMP_ULE || pred == FCmpInst::FCMP_OLE);
 1964                 pred == FCmpInst::FCMP_ULE || pred == FCmpInst::FCMP_OLE);
 1967       Result = (pred == FCmpInst::FCMP_UNE || pred == FCmpInst::FCMP_ONE ||
 1967       Result = (pred == FCmpInst::FCMP_UNE || pred == FCmpInst::FCMP_ONE ||
 1968                 pred == FCmpInst::FCMP_UGT || pred == FCmpInst::FCMP_OGT ||
 1968                 pred == FCmpInst::FCMP_UGT || pred == FCmpInst::FCMP_OGT ||
 1969                 pred == FCmpInst::FCMP_UGE || pred == FCmpInst::FCMP_OGE);
 1969                 pred == FCmpInst::FCMP_UGE || pred == FCmpInst::FCMP_OGE);
 1973       if (pred == FCmpInst::FCMP_UGT || pred == FCmpInst::FCMP_OGT)
 1973       if (pred == FCmpInst::FCMP_UGT || pred == FCmpInst::FCMP_OGT)
 1975       else if (pred == FCmpInst::FCMP_ULT || pred == FCmpInst::FCMP_OLT)
 1975       else if (pred == FCmpInst::FCMP_ULT || pred == FCmpInst::FCMP_OLT)
 1980       if (pred == FCmpInst::FCMP_ULT || pred == FCmpInst::FCMP_OLT)
 1980       if (pred == FCmpInst::FCMP_ULT || pred == FCmpInst::FCMP_OLT)
 1982       else if (pred == FCmpInst::FCMP_UGT || pred == FCmpInst::FCMP_OGT)
 1982       else if (pred == FCmpInst::FCMP_UGT || pred == FCmpInst::FCMP_OGT)
 1987       if (pred == FCmpInst::FCMP_OEQ || pred == FCmpInst::FCMP_UEQ)
 1987       if (pred == FCmpInst::FCMP_OEQ || pred == FCmpInst::FCMP_UEQ)
 1989       else if (pred == FCmpInst::FCMP_ONE || pred == FCmpInst::FCMP_UNE)
 1989       else if (pred == FCmpInst::FCMP_ONE || pred == FCmpInst::FCMP_UNE)
 1994       if (pred == FCmpInst::FCMP_ONE)
 1996       else if (pred == FCmpInst::FCMP_UEQ)
 2009                                  CmpInst::isSigned((CmpInst::Predicate)pred))) {
 2016       Result = ICmpInst::isTrueWhenEqual((ICmpInst::Predicate)pred);
 2019       switch (pred) {
 2027       switch (pred) {
 2035       switch (pred) {
 2043       switch (pred) {
 2051       if (pred == ICmpInst::ICMP_UGT) Result = 0;
 2052       if (pred == ICmpInst::ICMP_ULT || pred == ICmpInst::ICMP_ULE) Result = 1;
 2052       if (pred == ICmpInst::ICMP_ULT || pred == ICmpInst::ICMP_ULE) Result = 1;
 2055       if (pred == ICmpInst::ICMP_SGT) Result = 0;
 2056       if (pred == ICmpInst::ICMP_SLT || pred == ICmpInst::ICMP_SLE) Result = 1;
 2056       if (pred == ICmpInst::ICMP_SLT || pred == ICmpInst::ICMP_SLE) Result = 1;
 2059       if (pred == ICmpInst::ICMP_ULT) Result = 0;
 2060       if (pred == ICmpInst::ICMP_UGT || pred == ICmpInst::ICMP_UGE) Result = 1;
 2060       if (pred == ICmpInst::ICMP_UGT || pred == ICmpInst::ICMP_UGE) Result = 1;
 2063       if (pred == ICmpInst::ICMP_SLT) Result = 0;
 2064       if (pred == ICmpInst::ICMP_SGT || pred == ICmpInst::ICMP_SGE) Result = 1;
 2064       if (pred == ICmpInst::ICMP_SGT || pred == ICmpInst::ICMP_SGE) Result = 1;
 2067       if (pred == ICmpInst::ICMP_EQ) Result = 0;
 2068       if (pred == ICmpInst::ICMP_NE) Result = 1;
 2086         return ConstantExpr::getICmp(pred, Inverse, CE2Op0);
 2093            ICmpInst::isSigned((ICmpInst::Predicate)pred)) ||
 2095            !ICmpInst::isSigned((ICmpInst::Predicate)pred))){
 2103             return ConstantExpr::getICmp(pred, CE1Inverse, C2Inverse);
 2113       pred = ICmpInst::getSwappedPredicate((ICmpInst::Predicate)pred);
 2113       pred = ICmpInst::getSwappedPredicate((ICmpInst::Predicate)pred);
 2114       return ConstantExpr::getICmp(pred, C2, C1);