Searched refs:NewInst (Results 1 - 18 of 18) sorted by relevance

/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DCallPromotionUtils.cpp101 /// For example, if \p OrigInst is defined in "else_bb" and \p NewInst is
107 static void createRetPHINode(Instruction *OrigInst, Instruction *NewInst, argument
121 Phi->addIncoming(NewInst, NewInst->getParent());
306 CallBase *NewInst = cast<CallBase>(OrigInst->clone()); local
307 NewInst->insertBefore(ThenTerm);
310 Value *NewRetVal = NewInst;
316 NewBitCast->replaceUsesOfWith(OrigInst, NewInst);
334 return *NewInst;
351 CallBase *NewInst local
533 CallBase &NewInst = versionCallSite(CB, Callee, BranchWeights); local
[all...]
H A DCloneFunction.cpp57 Instruction *NewInst = I.clone(); local
59 NewInst->setName(I.getName() + NameSuffix);
60 NewBB->getInstList().push_back(NewInst);
61 VMap[&I] = NewInst; // Add instruction map to value.
333 Instruction *NewInst = II->clone(); local
337 if (!isa<PHINode>(NewInst)) {
338 RemapInstruction(NewInst, VMap,
345 SimplifyInstruction(NewInst, BB->getModule()->getDataLayout())) {
352 if (!NewInst->mayHaveSideEffects()) {
354 NewInst
417 Instruction *NewInst = OldTI->clone(); local
[all...]
H A DLibCallsShrinkWrap.cpp490 Instruction *NewInst = local
492 BasicBlock *CallBB = NewInst->getParent();
H A DInlineFunction.cpp2163 Instruction *NewInst = CallBase::Create(I, OpBundles, I); local
2164 NewInst->takeName(I);
2165 I->replaceAllUsesWith(NewInst);
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/XCore/
H A DXCoreLowerThreadLocal.cpp143 Instruction *NewInst = createReplacementInstr(CE, InsertPos); local
144 PN->setOperand(I, NewInst);
147 Instruction *NewInst = createReplacementInstr(CE, Instr); local
148 Instr->replaceUsesOfWith(CE, NewInst);
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DIndirectCallPromotion.cpp308 CallBase &NewInst = local
312 MDBuilder MDB(NewInst.getContext());
313 NewInst.setMetadata(
327 return NewInst;
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonCommonGEP.cpp1089 GetElementPtrInst *NewInst = nullptr; local
1119 NewInst = GetElementPtrInst::Create(ElTy, Input, A, "cgep", &*At);
1120 NewInst->setIsInBounds(RN->Flags & GepNode::InBounds);
1121 LLVM_DEBUG(dbgs() << "new GEP: " << *NewInst << '\n');
1122 Input = NewInst;
1126 return NewInst;
1206 Value *NewInst = fabricateGEP(NA, InsertAt, LastB); local
1216 CN->BaseVal = NewInst;
1229 U->set(NewInst);
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLoopDistribute.cpp222 Instruction *NewInst = &Inst; local
224 NewInst = cast<Instruction>(VMap[NewInst]);
226 assert(!isa<BranchInst>(NewInst) &&
228 Unused.push_back(NewInst);
H A DLoopUnswitch.cpp378 const SwitchInst *NewInst = cast_or_null<SwitchInst>(NewI); local
379 assert(NewInst && "All instructions that are in SrcBB must be in VMap.");
381 NewLoopProps.UnswitchedVals[NewInst] = OldLoopProps.UnswitchedVals[OldInst];
H A DReassociate.cpp2045 Value *NewInst = IsFSub ? Builder.CreateFAddFMF(OtherOp, Op, I)
2047 I->replaceAllUsesWith(NewInst);
2049 return dyn_cast<Instruction>(NewInst);
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMipsInstructionSelector.cpp260 MachineInstr *NewInst = local
266 if (!constrainSelectedInstRegOperands(*NewInst, TII, TRI, RBI))
274 MachineInstr *NewInst = local
281 if (!constrainSelectedInstRegOperands(*NewInst, TII, TRI, RBI))
/freebsd-13-stable/contrib/llvm-project/llvm/lib/CodeGen/
H A DTypePromotion.cpp467 if (auto *NewInst = dyn_cast<Instruction>(NewVal)) {
468 NewInst->copyIRFlags(I);
469 NewInsts.insert(NewInst);
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Analysis/
H A DVectorUtils.cpp1258 void InterleaveGroup<InstT>::addMetadata(InstT *NewInst) const {
1264 void InterleaveGroup<Instruction>::addMetadata(Instruction *NewInst) const {
1268 propagateMetadata(NewInst, VL);
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/Hexagon/AsmParser/
H A DHexagonAsmParser.cpp538 MCInst NewInst; local
539 NewInst.setOpcode(MCI.getOpcode());
543 NewInst.addOperand(MCOperand::createExpr(HexagonMCExpr::create(
549 NewInst.addOperand(I);
551 MCI = NewInst;
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DVectorUtils.h675 /// NewInst.
680 void addMetadata(InstTy *NewInst) const;
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/AVR/
H A DAVRExpandPseudoInsts.cpp831 MachineInstr &NewInst = local
833 f(NewInst);
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineAddSub.cpp199 void createInstPostProc(Instruction *NewInst, bool NoNumber = false);
/freebsd-13-stable/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DLegalizerHelper.cpp2853 MachineInstr *NewInst = local
2856 NewInst->setFlags(MI.getFlags());

Completed in 419 milliseconds