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

References

lib/Transforms/Utils/IntegerDivision.cpp
  584   assert((Div->getOpcode() == Instruction::SDiv ||
  585           Div->getOpcode() == Instruction::UDiv) &&
  588   Type *DivTy = Div->getType();
  596     return expandDivision(Div);
  600   IRBuilder<> Builder(Div);
  608   if (Div->getOpcode() == Instruction::SDiv) {
  609     ExtDividend = Builder.CreateSExt(Div->getOperand(0), Int32Ty);
  610     ExtDivisor = Builder.CreateSExt(Div->getOperand(1), Int32Ty);
  613     ExtDividend = Builder.CreateZExt(Div->getOperand(0), Int32Ty);
  614     ExtDivisor = Builder.CreateZExt(Div->getOperand(1), Int32Ty);
  619   Div->replaceAllUsesWith(Trunc);
  620   Div->dropAllReferences();
  621   Div->eraseFromParent();