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

References

lib/IR/ConstantFold.cpp
 1537   assert(V1->getType() == V2->getType() &&
 1539   if (V1 == V2) return ICmpInst::ICMP_EQ;
 1543     if (!isa<GlobalValue>(V2) && !isa<ConstantExpr>(V2) &&
 1543     if (!isa<GlobalValue>(V2) && !isa<ConstantExpr>(V2) &&
 1544         !isa<BlockAddress>(V2)) {
 1549       R = dyn_cast<ConstantInt>(ConstantExpr::getICmp(pred, V1, V2));
 1553       R = dyn_cast<ConstantInt>(ConstantExpr::getICmp(pred, V1, V2));
 1557       R = dyn_cast<ConstantInt>(ConstantExpr::getICmp(pred, V1, V2));
 1567       evaluateICmpRelation(V2, V1, isSigned);
 1572     if (isa<ConstantExpr>(V2)) {  // Swap as necessary.
 1574         evaluateICmpRelation(V2, V1, isSigned);
 1583     if (const GlobalValue *GV2 = dyn_cast<GlobalValue>(V2)) {
 1585     } else if (isa<BlockAddress>(V2)) {
 1588       assert(isa<ConstantPointerNull>(V2) && "Canonicalization guarantee!");
 1600     if (isa<ConstantExpr>(V2)) {  // Swap as necessary.
 1602         evaluateICmpRelation(V2, V1, isSigned);
 1611     if (const BlockAddress *BA2 = dyn_cast<BlockAddress>(V2)) {
 1619       assert((isa<ConstantPointerNull>(V2) || isa<GlobalValue>(V2)) &&
 1619       assert((isa<ConstantPointerNull>(V2) || isa<GlobalValue>(V2)) &&
 1648       if (V2->isNullValue() && CE1->getType()->isIntOrPtrTy()) {
 1661       if (isa<ConstantPointerNull>(V2)) {
 1684       } else if (const GlobalValue *GV2 = dyn_cast<GlobalValue>(V2)) {
 1711         ConstantExpr *CE2 = cast<ConstantExpr>(V2);