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

References

lib/IR/ConstantFold.cpp
 1802   if (isa<UndefValue>(C1) || isa<UndefValue>(C2)) {
 1808     if (ICmpInst::isEquality(Predicate) || (isIntegerPredicate && C1 == C2))
 1823     if (const GlobalValue *GV = dyn_cast<GlobalValue>(C2))
 1834   } else if (C2->isNullValue()) {
 1851       if (isa<ConstantInt>(C2))
 1852         return ConstantExpr::getXor(C1, ConstantExpr::getNot(C2));
 1853       return ConstantExpr::getXor(ConstantExpr::getNot(C1), C2);
 1855       return ConstantExpr::getXor(C1, C2);
 1861   if (isa<ConstantInt>(C1) && isa<ConstantInt>(C2)) {
 1863     const APInt &V2 = cast<ConstantInt>(C2)->getValue();
 1877   } else if (isa<ConstantFP>(C1) && isa<ConstantFP>(C2)) {
 1879     const APFloat &C2V = cast<ConstantFP>(C2)->getValueAPF();
 1930         ConstantExpr::getExtractElement(C2, ConstantInt::get(Ty, i));
 1941       (isa<ConstantExpr>(C1) || isa<ConstantExpr>(C2))) {
 1943     switch (evaluateFCmpRelation(C1, C2)) {
 2008     switch (evaluateICmpRelation(C1, C2,
 2080     if (ConstantExpr *CE2 = dyn_cast<ConstantExpr>(C2)) {
 2100           Constant *C2Inverse = ConstantExpr::getTrunc(C2, CE1Op0->getType());
 2102                                     C2->getType()) == C2)
 2102                                     C2->getType()) == C2)
 2108     if ((!isa<ConstantExpr>(C1) && isa<ConstantExpr>(C2)) ||
 2109         (C1->isNullValue() && !C2->isNullValue())) {
 2114       return ConstantExpr::getICmp(pred, C2, C1);