reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
269 assert((isa<UnaryOperator>(Neg) || isa<BinaryOperator>(Neg)) && 269 assert((isa<UnaryOperator>(Neg) || isa<BinaryOperator>(Neg)) && 272 unsigned OpNo = isa<BinaryOperator>(Neg) ? 1 : 0; 273 Type *Ty = Neg->getType(); 277 BinaryOperator *Res = CreateMul(Neg->getOperand(OpNo), NegOne, "", Neg, Neg); 277 BinaryOperator *Res = CreateMul(Neg->getOperand(OpNo), NegOne, "", Neg, Neg); 277 BinaryOperator *Res = CreateMul(Neg->getOperand(OpNo), NegOne, "", Neg, Neg); 278 Neg->setOperand(OpNo, Constant::getNullValue(Ty)); // Drop use of op. 279 Res->takeName(Neg); 280 Neg->replaceAllUsesWith(Res); 281 Res->setDebugLoc(Neg->getDebugLoc());