| /llvm-project-15.0.7/llvm/lib/Transforms/Utils/ |
| H A D | CallPromotionUtils.cpp | 119 Phi->addIncoming(NewInst, NewInst->getParent()); in createRetPHINode() 302 CallBase *NewInst = cast<CallBase>(OrigInst->clone()); in versionCallSite() local 303 NewInst->insertBefore(ThenTerm); in versionCallSite() 306 Value *NewRetVal = NewInst; in versionCallSite() 312 NewBitCast->replaceUsesOfWith(OrigInst, NewInst); in versionCallSite() 330 return *NewInst; in versionCallSite() 347 CallBase *NewInst = cast<CallBase>(OrigInst->clone()); in versionCallSite() local 349 NewInst->insertBefore(ThenTerm); in versionCallSite() 355 auto *NewInvoke = cast<InvokeInst>(NewInst); in versionCallSite() 379 return *NewInst; in versionCallSite() [all …]
|
| H A D | CloneFunction.cpp | 57 Instruction *NewInst = I.clone(); in CloneBasicBlock() local 60 NewBB->getInstList().push_back(NewInst); in CloneBasicBlock() 373 Instruction *NewInst = nullptr; in cloneInstruction() local 436 if (!NewInst) in cloneInstruction() 437 NewInst = II->clone(); in cloneInstruction() 438 return NewInst; in cloneInstruction() 491 if (!isa<PHINode>(NewInst)) { in CloneBlock() 492 RemapInstruction(NewInst, VMap, in CloneBlock() 508 NewInst->deleteValue(); in CloneBlock() 521 CodeInfo->OrigVMap[&*II] = NewInst; in CloneBlock() [all …]
|
| H A D | LibCallsShrinkWrap.cpp | 488 Instruction *NewInst = in shrinkWrapCI() local 490 BasicBlock *CallBB = NewInst->getParent(); in shrinkWrapCI()
|
| /llvm-project-15.0.7/llvm/lib/Target/X86/ |
| H A D | X86LowerAMXType.cpp | 248 Value *NewInst = in combineLoadBitcast() local 250 Bitcast->replaceAllUsesWith(NewInst); in combineLoadBitcast() 326 Bitcast->replaceAllUsesWith(NewInst); in transformBitcast() 344 Bitcast->replaceAllUsesWith(NewInst); in transformBitcast() 793 NewInst->moveBefore(&*Iter); in optimizeAMXCastFromPhi() 796 NewInst->moveBefore(&*Iter); in optimizeAMXCastFromPhi() 799 IncValue = NewInst; in optimizeAMXCastFromPhi() 962 Value *NewInst = in combineLoadCast() local 964 Cast->replaceAllUsesWith(NewInst); in combineLoadCast() 1139 AMXCast->replaceAllUsesWith(NewInst); in transformAMXCast() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/XCore/ |
| H A D | XCoreLowerThreadLocal.cpp | 92 Instruction *NewInst = CE->getAsInstruction(InsertPos); in replaceConstantExprOp() local 93 PN->setOperand(I, NewInst); in replaceConstantExprOp() 96 Instruction *NewInst = CE->getAsInstruction(Instr); in replaceConstantExprOp() local 97 Instr->replaceUsesOfWith(CE, NewInst); in replaceConstantExprOp()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Instrumentation/ |
| H A D | IndirectCallPromotion.cpp | 256 CallBase &NewInst = in promoteIndirectCall() local 260 MDBuilder MDB(NewInst.getContext()); in promoteIndirectCall() 261 NewInst.setMetadata( in promoteIndirectCall() 275 return NewInst; in promoteIndirectCall()
|
| /llvm-project-15.0.7/llvm/lib/Target/NVPTX/ |
| H A D | NVPTXLowerArgs.cpp | 204 Value *NewInst = CloneInstInParamAS(I); in convertToParamAS() local 206 if (NewInst && NewInst != I.OldInstruction) { in convertToParamAS() 211 ItemsToConvert.push_back({cast<Instruction>(V), NewInst}); in convertToParamAS()
|
| /llvm-project-15.0.7/bolt/lib/Core/ |
| H A D | BinaryBasicBlock.cpp | 493 MCInst NewInst; in addBranchInstruction() local 495 BC.MIB->createUncondBranch(NewInst, Successor->getLabel(), BC.Ctx.get()); in addBranchInstruction() 496 Instructions.emplace_back(std::move(NewInst)); in addBranchInstruction() 501 MCInst NewInst; in addTailCallInstruction() local 502 BC.MIB->createTailCall(NewInst, Target, BC.Ctx.get()); in addTailCallInstruction() 503 Instructions.emplace_back(std::move(NewInst)); in addTailCallInstruction()
|
| /llvm-project-15.0.7/polly/lib/CodeGen/ |
| H A D | BlockGenerators.cpp | 221 Instruction *NewInst = Inst->clone(); in copyInstScalar() local 229 assert(!isa<StoreInst>(NewInst) && in copyInstScalar() 231 NewInst->deleteValue(); in copyInstScalar() 238 Builder.Insert(NewInst); in copyInstScalar() 239 BBMap[Inst] = NewInst; in copyInstScalar() 248 NewInst->setDebugLoc(llvm::DebugLoc()); in copyInstScalar() 250 if (!NewInst->getType()->isVoidTy()) in copyInstScalar() 401 Instruction *NewInst = &*I; in removeDeadInstructions() local 407 if (Pair.second == NewInst) { in removeDeadInstructions() 411 NewInst->eraseFromParent(); in removeDeadInstructions() [all …]
|
| /llvm-project-15.0.7/bolt/lib/Passes/ |
| H A D | ShrinkWrapping.cpp | 948 MCInst NewInst; in splitFrontierCritEdges() local 949 BC.MIB->createNoop(NewInst); in splitFrontierCritEdges() 1027 MCInst NewInst; in doRestorePlacement() local 1028 BC.MIB->createNoop(NewInst); in doRestorePlacement() 1668 MCInst NewInst; in createStackAccess() local 1687 BC.MIB->changeToPushOrPop(NewInst); in createStackAccess() 1688 return NewInst; in createStackAccess() 1708 return NewInst; in createStackAccess() 1791 MCInst NewInst = in processInsertion() local 1799 NewInst.dump(); in processInsertion() [all …]
|
| H A D | Instrumentation.cpp | 190 for (MCInst &NewInst : Instrs) { in insertInstructions() 191 Iter = BB.insertInstruction(Iter, NewInst); in insertInstructions() 561 MCInst NewInst; in runOnFunctions() local 562 BC.MIB->createCall(NewInst, Target, BC.Ctx.get()); in runOnFunctions() 563 BB.insertInstruction(BB.begin(), std::move(NewInst)); in runOnFunctions()
|
| /llvm-project-15.0.7/llvm/lib/Target/BPF/ |
| H A D | BPFAdjustOpt.cpp | 148 auto *NewInst = CallInst::Create(Fn, {Opcode, Op0, ConstOp1}); in adjustICmpToBuiltin() local 149 BB.getInstList().insert(I.getIterator(), NewInst); in adjustICmpToBuiltin() 150 Icmp->replaceAllUsesWith(NewInst); in adjustICmpToBuiltin()
|
| H A D | BPFAbstractMemberAccess.cpp | 109 auto *NewInst = CallInst::Create(Fn, {SeqNumVal, Input}); in insertPassThrough() local 110 BB->getInstList().insert(Before->getIterator(), NewInst); in insertPassThrough() 111 return NewInst; in insertPassThrough()
|
| /llvm-project-15.0.7/bolt/include/bolt/Core/ |
| H A D | BinaryBasicBlock.h | 754 iterator insertInstruction(iterator At, MCInst &&NewInst) { in insertInstruction() argument 755 adjustNumPseudos(NewInst, 1); in insertInstruction() 756 return Instructions.emplace(At, std::move(NewInst)); in insertInstruction() 759 iterator insertInstruction(iterator At, MCInst &NewInst) { in insertInstruction() argument 760 adjustNumPseudos(NewInst, 1); in insertInstruction() 761 return Instructions.insert(At, NewInst); in insertInstruction()
|
| /llvm-project-15.0.7/llvm/lib/Target/Hexagon/ |
| H A D | HexagonCommonGEP.cpp | 1086 GetElementPtrInst *NewInst = nullptr; in fabricateGEP() local 1112 NewInst = GetElementPtrInst::Create(InpTy, Input, IdxList, "cgep", &*At); in fabricateGEP() 1113 NewInst->setIsInBounds(RN->Flags & GepNode::InBounds); in fabricateGEP() 1114 LLVM_DEBUG(dbgs() << "new GEP: " << *NewInst << '\n'); in fabricateGEP() 1116 Input = NewInst; in fabricateGEP() 1121 return NewInst; in fabricateGEP() 1201 Value *NewInst = fabricateGEP(NA, InsertAt, LastB); in materialize() local 1210 CN->BaseVal = NewInst; in materialize() 1222 U->set(NewInst); in materialize()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Scalar/ |
| H A D | LoopDistribute.cpp | 220 Instruction *NewInst = &Inst; in removeUnusedInsts() local 222 NewInst = cast<Instruction>(VMap[NewInst]); in removeUnusedInsts() 224 assert(!isa<BranchInst>(NewInst) && in removeUnusedInsts() 226 Unused.push_back(NewInst); in removeUnusedInsts()
|
| H A D | LowerMatrixIntrinsics.cpp | 721 Instruction *NewInst = nullptr; in optimizeTransposes() local 754 NewInst = Builder.CreateMatrixMultiply(T0, T1, C->getZExtValue(), in optimizeTransposes() 757 ReplaceAllUsesWith(I, NewInst); in optimizeTransposes() 764 if (NewInst) in optimizeTransposes() 765 II = std::next(BasicBlock::reverse_iterator(NewInst)); in optimizeTransposes() 786 Instruction *NewInst = Builder.CreateMatrixTranspose( in optimizeTransposes() local 788 ReplaceAllUsesWith(I, NewInst); in optimizeTransposes()
|
| H A D | SimpleLoopUnswitch.cpp | 241 Instruction *NewInst = Inst->clone(); in buildPartialInvariantUnswitchConditionalBranch() local 242 BB.getInstList().insert(BB.end(), NewInst); in buildPartialInvariantUnswitchConditionalBranch() 243 RemapInstruction(NewInst, VMap, in buildPartialInvariantUnswitchConditionalBranch() 245 VMap[Val] = NewInst; in buildPartialInvariantUnswitchConditionalBranch() 264 MSSAU->createMemoryAccessInBB(NewInst, DefiningAccess, in buildPartialInvariantUnswitchConditionalBranch() 265 NewInst->getParent(), in buildPartialInvariantUnswitchConditionalBranch()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/ |
| H A D | ExpandVectorPredication.cpp | 101 auto *NewInst = dyn_cast<Instruction>(&NewVal); in transferDecorations() local 102 if (!NewInst || !isa<FPMathOperator>(NewVal)) in transferDecorations() 109 NewInst->setFastMathFlags(OldFMOp->getFastMathFlags()); in transferDecorations()
|
| /llvm-project-15.0.7/llvm/lib/Target/Mips/ |
| H A D | MipsInstructionSelector.cpp | 260 MachineInstr *NewInst = in buildUnalignedStore() local 266 if (!constrainSelectedInstRegOperands(*NewInst, TII, TRI, RBI)) in buildUnalignedStore() 274 MachineInstr *NewInst = in buildUnalignedLoad() local 281 if (!constrainSelectedInstRegOperands(*NewInst, TII, TRI, RBI)) in buildUnalignedLoad()
|
| /llvm-project-15.0.7/llvm/lib/Analysis/ |
| H A D | VectorUtils.cpp | 1466 void InterleaveGroup<InstT>::addMetadata(InstT *NewInst) const { in addMetadata() 1472 void InterleaveGroup<Instruction>::addMetadata(Instruction *NewInst) const { in addMetadata() 1476 propagateMetadata(NewInst, VL); in addMetadata()
|
| /llvm-project-15.0.7/llvm/lib/Target/Hexagon/AsmParser/ |
| H A D | HexagonAsmParser.cpp | 527 MCInst NewInst; in canonicalizeImmediates() local 528 NewInst.setOpcode(MCI.getOpcode()); in canonicalizeImmediates() 532 NewInst.addOperand(MCOperand::createExpr(HexagonMCExpr::create( in canonicalizeImmediates() 538 NewInst.addOperand(I); in canonicalizeImmediates() 540 MCI = NewInst; in canonicalizeImmediates()
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CGCUDANV.cpp | 483 auto *NewInst = CE->getAsInstruction(I); in replaceManagedVar() local 484 NewInst->replaceUsesOfWith(OldV, NewV); in replaceManagedVar() 486 NewV = NewInst; in replaceManagedVar()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/IPO/ |
| H A D | WholeProgramDevirt.cpp | 1138 CallBase &NewInst = versionCallSite(CB, Callee, Weights); in applySingleImplDevirt() local 1139 NewInst.setCalledOperand(Callee); in applySingleImplDevirt() 1143 NewInst.setMetadata(LLVMContext::MD_prof, nullptr); in applySingleImplDevirt() 1144 NewInst.setMetadata(LLVMContext::MD_callees, nullptr); in applySingleImplDevirt()
|
| /llvm-project-15.0.7/llvm/include/llvm/Analysis/ |
| H A D | VectorUtils.h | 704 void addMetadata(InstTy *NewInst) const;
|