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

References

lib/Analysis/ConstantFolding.cpp
 2029   assert(Operands.size() == 2 && "Wrong number of operands.");
 2031   if (auto *Op1 = dyn_cast<ConstantFP>(Operands[0])) {
 2036     if (auto *Op2 = dyn_cast<ConstantFP>(Operands[1])) {
 2106     } else if (auto *Op2C = dyn_cast<ConstantInt>(Operands[1])) {
 2123   if (Operands[0]->getType()->isIntegerTy() &&
 2124       Operands[1]->getType()->isIntegerTy()) {
 2126     if (!getConstIntOrUndef(Operands[0], C0) ||
 2127         !getConstIntOrUndef(Operands[1], C1))
 2222   if ((isa<ConstantVector>(Operands[0]) ||
 2223        isa<ConstantDataVector>(Operands[0])) &&
 2226       isa<ConstantInt>(Operands[1]) &&
 2227       cast<ConstantInt>(Operands[1])->getValue() == 4) {
 2228     auto *Op = cast<Constant>(Operands[0]);