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

References

lib/IR/ConstantFold.cpp
  993                         (isa<UndefValue>(C1) || isa<UndefValue>(C2));
  997       if (isa<UndefValue>(C1) && isa<UndefValue>(C2))
 1006       if (isa<UndefValue>(C1) && isa<UndefValue>(C2)) // undef & undef -> undef
 1011       if (isa<UndefValue>(C1) && isa<UndefValue>(C2))
 1015       if (match(C1, m_APInt(CV)) || match(C2, m_APInt(CV)))
 1025       if (isa<UndefValue>(C2))
 1026         return C2;
 1029       if (match(C2, m_Zero()) || match(C2, m_One()))
 1029       if (match(C2, m_Zero()) || match(C2, m_One()))
 1036       if (match(C2, m_Undef()))
 1037         return C2;
 1039       if (match(C2, m_Zero()))
 1044       if (isa<UndefValue>(C1) && isa<UndefValue>(C2)) // undef | undef -> undef
 1049       if (isa<UndefValue>(C2))
 1050         return C2;
 1052       if (match(C2, m_Zero()))
 1058       if (isa<UndefValue>(C2))
 1059         return C2;
 1061       if (match(C2, m_Zero()))
 1068       if (isa<UndefValue>(C2))
 1069         return C2;
 1071       if (match(C2, m_Zero()))
 1081       if (isa<UndefValue>(C1) && isa<UndefValue>(C2))
 1100   if (ConstantInt *CI2 = dyn_cast<ConstantInt>(C2)) {
 1109       if (CI2->isZero()) return C2;                             // X * 0 == 0
 1128       if (CI2->isZero()) return C2;                           // X & 0 == 0
 1187         return C2;                         // X | -1 == -1
 1210           return ConstantExpr::getLShr(C1, C2);
 1216       return ConstantExpr::get(Opcode, C2, C1);
 1220     if (ConstantInt *CI2 = dyn_cast<ConstantInt>(C2)) {
 1283     if (ConstantFP *CFP2 = dyn_cast<ConstantFP>(C2)) {
 1314       Constant *RHS = ConstantExpr::getExtractElement(C2, ExtractIdx);
 1334       Constant *T = ConstantExpr::get(Opcode, CE1->getOperand(1), C2);
 1338   } else if (isa<ConstantExpr>(C2)) {
 1342       return ConstantFoldBinaryInstruction(Opcode, C2, C1);
 1350       return ConstantExpr::getXor(C1, C2);
 1352       return ConstantExpr::getAnd(C1, C2);