reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
373 auto *M = LI->getModule(); 374 Type *NewTy = getCorrespondingIntegerType(LI->getType(), 377 IRBuilder<> Builder(LI); 379 Value *Addr = LI->getPointerOperand(); 385 NewLI->setAlignment(MaybeAlign(LI->getAlignment())); 386 NewLI->setVolatile(LI->isVolatile()); 387 NewLI->setAtomic(LI->getOrdering(), LI->getSyncScopeID()); 387 NewLI->setAtomic(LI->getOrdering(), LI->getSyncScopeID()); 388 LLVM_DEBUG(dbgs() << "Replaced " << *LI << " with " << *NewLI << "\n"); 390 Value *NewVal = Builder.CreateBitCast(NewLI, LI->getType()); 391 LI->replaceAllUsesWith(NewVal); 392 LI->eraseFromParent();