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

References

lib/Transforms/Utils/IntegerDivision.cpp
  376   assert((Rem->getOpcode() == Instruction::SRem ||
  377           Rem->getOpcode() == Instruction::URem) &&
  380   IRBuilder<> Builder(Rem);
  382   assert(!Rem->getType()->isVectorTy() && "Div over vectors not supported");
  383   assert((Rem->getType()->getIntegerBitWidth() == 32 ||
  384           Rem->getType()->getIntegerBitWidth() == 64) &&
  388   if (Rem->getOpcode() == Instruction::SRem) {
  389     Value *Remainder = generateSignedRemainderCode(Rem->getOperand(0),
  390                                                    Rem->getOperand(1), Builder);
  393     bool IsInsertPoint = Rem->getIterator() == Builder.GetInsertPoint();
  394     Rem->replaceAllUsesWith(Remainder);
  395     Rem->dropAllReferences();
  396     Rem->eraseFromParent();
  405     Rem = BO;
  408   Value *Remainder = generatedUnsignedRemainderCode(Rem->getOperand(0),
  409                                                     Rem->getOperand(1),
  412   Rem->replaceAllUsesWith(Remainder);
  413   Rem->dropAllReferences();
  414   Rem->eraseFromParent();