Home
last modified time | relevance | path

Searched refs:NewInst (Results 1 – 25 of 32) sorted by relevance

12

/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/
DCallPromotionUtils.cpp105 static void createRetPHINode(Instruction *OrigInst, Instruction *NewInst, in createRetPHINode() argument
119 Phi->addIncoming(NewInst, NewInst->getParent()); in createRetPHINode()
285 Instruction *NewInst = OrigInst->clone(); in versionCallSite() local
287 NewInst->insertBefore(ThenTerm); in versionCallSite()
293 auto *NewInvoke = cast<InvokeInst>(NewInst); in versionCallSite()
315 createRetPHINode(OrigInst, NewInst, MergeBlock, Builder); in versionCallSite()
317 return NewInst; in versionCallSite()
419 Instruction *NewInst = versionCallSite(CS, Callee, BranchWeights); in promoteCallWithIfThenElse() local
422 return promoteCall(CallSite(NewInst), Callee); in promoteCallWithIfThenElse()
DCloneFunction.cpp57 Instruction *NewInst = I.clone(); in CloneBasicBlock() local
59 NewInst->setName(I.getName() + NameSuffix); in CloneBasicBlock()
60 NewBB->getInstList().push_back(NewInst); in CloneBasicBlock()
61 VMap[&I] = NewInst; // Add instruction map to value. in CloneBasicBlock()
321 Instruction *NewInst = II->clone(); in CloneBlock() local
325 if (!isa<PHINode>(NewInst)) { in CloneBlock()
326 RemapInstruction(NewInst, VMap, in CloneBlock()
333 SimplifyInstruction(NewInst, BB->getModule()->getDataLayout())) { in CloneBlock()
340 if (!NewInst->mayHaveSideEffects()) { in CloneBlock()
342 NewInst->deleteValue(); in CloneBlock()
[all …]
DLibCallsShrinkWrap.cpp490 TerminatorInst *NewInst = in shrinkWrapCI() local
492 BasicBlock *CallBB = NewInst->getParent(); in shrinkWrapCI()
DInlineFunction.cpp2029 Instruction *NewInst; in InlineFunction() local
2031 NewInst = CallInst::Create(cast<CallInst>(I), OpBundles, I); in InlineFunction()
2033 NewInst = InvokeInst::Create(cast<InvokeInst>(I), OpBundles, I); in InlineFunction()
2034 NewInst->takeName(I); in InlineFunction()
2035 I->replaceAllUsesWith(NewInst); in InlineFunction()
/external/llvm/lib/Transforms/Utils/
DCloneFunction.cpp51 Instruction *NewInst = II->clone(); in CloneBasicBlock() local
53 NewInst->setName(II->getName()+NameSuffix); in CloneBasicBlock()
54 NewBB->getInstList().push_back(NewInst); in CloneBasicBlock()
55 VMap[&*II] = NewInst; // Add instruction map to value. in CloneBasicBlock()
281 Instruction *NewInst = II->clone(); in CloneBlock() local
285 if (!isa<PHINode>(NewInst)) { in CloneBlock()
286 RemapInstruction(NewInst, VMap, in CloneBlock()
293 SimplifyInstruction(NewInst, BB->getModule()->getDataLayout())) { in CloneBlock()
299 if (!NewInst->mayHaveSideEffects()) { in CloneBlock()
301 delete NewInst; in CloneBlock()
[all …]
DInlineFunction.cpp1815 Instruction *NewInst; in InlineFunction() local
1817 NewInst = CallInst::Create(cast<CallInst>(I), OpBundles, I); in InlineFunction()
1819 NewInst = InvokeInst::Create(cast<InvokeInst>(I), OpBundles, I); in InlineFunction()
1820 NewInst->takeName(I); in InlineFunction()
1821 I->replaceAllUsesWith(NewInst); in InlineFunction()
/external/llvm/lib/Transforms/Instrumentation/
DIndirectCallPromotion.cpp405 Instruction *NewInst) { in fixupPHINodeForNormalDest() argument
416 PHI->addIncoming(NewInst, OrigBB); in fixupPHINodeForNormalDest()
457 Instruction *NewInst = Inst->clone(); in createDirectCallInst() local
458 if (CallInst *CI = dyn_cast<CallInst>(NewInst)) { in createDirectCallInst()
466 InvokeInst *II = dyn_cast<InvokeInst>(NewInst); in createDirectCallInst()
474 NewInst); in createDirectCallInst()
477 NewInst->setMetadata(LLVMContext::MD_prof, 0); in createDirectCallInst()
478 CallSite NewCS(NewInst); in createDirectCallInst()
485 BitCastInst *BI = new BitCastInst(NewCS.getArgument(I), PTy, "", NewInst); in createDirectCallInst()
490 return insertCallRetCast(Inst, NewInst, DirectCallee); in createDirectCallInst()
[all …]
/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/
DCloneFunction.cpp46 Instruction *NewInst = II->clone(); in CloneBasicBlock() local
48 NewInst->setName(II->getName()+NameSuffix); in CloneBasicBlock()
49 NewBB->getInstList().push_back(NewInst); in CloneBasicBlock()
50 VMap[II] = NewInst; // Add instruction map to value. in CloneBasicBlock()
240 Instruction *NewInst = II->clone(); in CloneBlock() local
242 NewInst->setName(II->getName()+NameSuffix); in CloneBlock()
243 NewBB->getInstList().push_back(NewInst); in CloneBlock()
244 VMap[II] = NewInst; // Add instruction map to value. in CloneBlock()
292 Instruction *NewInst = OldTI->clone(); in CloneBlock() local
294 NewInst->setName(OldTI->getName()+NameSuffix); in CloneBlock()
[all …]
/external/swiftshader/third_party/subzero/docs/
DLOWERING.rst66 NewInst = InstX8632Mov::create(Func, Reg, Src);
67 NewInst = InstX8632Mov::create(Func, Dst, Reg);
109 NewInst = InstX8632Mov::create(Func, Reg, Src);
110 NewInst = InstX8632Ret::create(Func, Reg);
148 NewInst = InstFakeKill::create(Func, CallInst);
173 NewInst = InstFakeKill::create(Func, CallInst);
176 NewInst = InstFakeDef::create(Func, RegHigh);
201 NewInst = InstFakeKill::create(Func, CallInst);
202 NewInst = InstFakeUse::create(Func, Reg);
203 NewInst = InstX8632Mov::create(Func, Result, Reg);
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/XCore/
DXCoreLowerThreadLocal.cpp143 Instruction *NewInst = createReplacementInstr(CE, InsertPos); in replaceConstantExprOp() local
144 PN->setOperand(I, NewInst); in replaceConstantExprOp()
147 Instruction *NewInst = createReplacementInstr(CE, Instr); in replaceConstantExprOp() local
148 Instr->replaceUsesOfWith(CE, NewInst); in replaceConstantExprOp()
/external/llvm/lib/Target/XCore/
DXCoreLowerThreadLocal.cpp143 Instruction *NewInst = createReplacementInstr(CE, InsertPos); in replaceConstantExprOp() local
144 PN->setOperand(I, NewInst); in replaceConstantExprOp()
147 Instruction *NewInst = createReplacementInstr(CE, Instr); in replaceConstantExprOp() local
148 Instr->replaceUsesOfWith(CE, NewInst); in replaceConstantExprOp()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Instrumentation/
DIndirectCallPromotion.cpp309 Instruction *NewInst = in promoteIndirectCall() local
315 MDBuilder MDB(NewInst->getContext()); in promoteIndirectCall()
316 NewInst->setMetadata(LLVMContext::MD_prof, MDB.createBranchWeights(Weights)); in promoteIndirectCall()
328 return NewInst; in promoteIndirectCall()
DPGOMemOPSizeOpt.cpp376 Instruction *NewInst = MI->clone(); in perform() local
378 MemIntrinsic * MemI = dyn_cast<MemIntrinsic>(NewInst); in perform()
383 CaseBB->getInstList().push_back(NewInst); in perform()
/external/llvm/lib/Transforms/Scalar/
DLoopDistribute.cpp176 Instruction *NewInst = &Inst; in removeUnusedInsts() local
178 NewInst = cast<Instruction>(VMap[NewInst]); in removeUnusedInsts()
180 assert(!isa<BranchInst>(NewInst) && in removeUnusedInsts()
182 Unused.push_back(NewInst); in removeUnusedInsts()
DLoopUnswitch.cpp371 const SwitchInst *NewInst = cast_or_null<SwitchInst>(NewI); in cloneData() local
372 assert(NewInst && "All instructions that are in SrcBB must be in VMap."); in cloneData()
374 NewLoopProps.UnswitchedVals[NewInst] = OldLoopProps.UnswitchedVals[OldInst]; in cloneData()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/
DLoopDistribute.cpp210 Instruction *NewInst = &Inst; in removeUnusedInsts() local
212 NewInst = cast<Instruction>(VMap[NewInst]); in removeUnusedInsts()
214 assert(!isa<BranchInst>(NewInst) && in removeUnusedInsts()
216 Unused.push_back(NewInst); in removeUnusedInsts()
DLoopUnswitch.cpp372 const SwitchInst *NewInst = cast_or_null<SwitchInst>(NewI); in cloneData() local
373 assert(NewInst && "All instructions that are in SrcBB must be in VMap."); in cloneData()
375 NewLoopProps.UnswitchedVals[NewInst] = OldLoopProps.UnswitchedVals[OldInst]; in cloneData()
/external/swiftshader/third_party/subzero/src/
DIceConverter.cpp559 Ice::InstCall *NewInst = nullptr; in convertCallInstruction() local
571 NewInst = Ice::InstIntrinsicCall::create(Func.get(), NumArgs, Dest, in convertCallInstruction()
576 if (NewInst == nullptr) { in convertCallInstruction()
577 NewInst = Ice::InstCall::create(Func.get(), NumArgs, Dest, CallTarget, in convertCallInstruction()
581 NewInst->addArg(convertOperand(Instr, i)); in convertCallInstruction()
584 validateIntrinsicCall(NewInst, Info); in convertCallInstruction()
586 return NewInst; in convertCallInstruction()
DIceCfgNode.cpp264 auto *NewInst = InstAssign::create(Func, Dest, Operand); in placePhiStores() local
266 Insts.insert(SafeInsertionPoint, NewInst); in placePhiStores()
268 Insts.insert(InsertionPoint, NewInst); in placePhiStores()
1614 InstBr *NewInst = nullptr; in shortCircuit() local
1618 NewInst = in shortCircuit()
1623 NewInst = in shortCircuit()
1629 assert(NewInst != nullptr); in shortCircuit()
1630 appendInst(NewInst); in shortCircuit()
DIceTargetLowering.cpp703 auto *NewInst = in postRegallocSplitting() local
705 Node->getInsts().insert(instToIterator(Info.FirstUse), NewInst); in postRegallocSplitting()
708 auto *NewInst = in postRegallocSplitting() local
710 Node->getInsts().insertAfter(instToIterator(Info.LastDef), NewInst); in postRegallocSplitting()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Hexagon/
DHexagonCommonGEP.cpp1100 GetElementPtrInst *NewInst = nullptr; in fabricateGEP() local
1130 NewInst = GetElementPtrInst::Create(ElTy, Input, A, "cgep", &*At); in fabricateGEP()
1131 NewInst->setIsInBounds(RN->Flags & GepNode::InBounds); in fabricateGEP()
1132 LLVM_DEBUG(dbgs() << "new GEP: " << *NewInst << '\n'); in fabricateGEP()
1133 Input = NewInst; in fabricateGEP()
1137 return NewInst; in fabricateGEP()
1217 Value *NewInst = fabricateGEP(NA, InsertAt, LastB); in materialize() local
1227 CN->BaseVal = NewInst; in materialize()
1240 U->set(NewInst); in materialize()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineMulDivRem.cpp1333 Value *NewInst = nullptr; in visitFDiv() local
1340 NewInst = Builder->CreateFMul(Y, Op1); in visitFDiv()
1341 if (Instruction *RI = dyn_cast<Instruction>(NewInst)) { in visitFDiv()
1346 SimpR = BinaryOperator::CreateFDiv(X, NewInst); in visitFDiv()
1352 NewInst = Builder->CreateFMul(Op0, Y); in visitFDiv()
1353 if (Instruction *RI = dyn_cast<Instruction>(NewInst)) { in visitFDiv()
1358 SimpR = BinaryOperator::CreateFDiv(NewInst, X); in visitFDiv()
1362 if (NewInst) { in visitFDiv()
1363 if (Instruction *T = dyn_cast<Instruction>(NewInst)) in visitFDiv()
/external/llvm/lib/Target/Hexagon/
DHexagonCommonGEP.cpp1092 Value *NewInst = 0; in fabricateGEP() local
1122 NewInst = GetElementPtrInst::Create(ElTy, Input, A, "cgep", &*At); in fabricateGEP()
1123 DEBUG(dbgs() << "new GEP: " << *NewInst << '\n'); in fabricateGEP()
1124 Input = NewInst; in fabricateGEP()
1128 return NewInst; in fabricateGEP()
1210 Value *NewInst = fabricateGEP(NA, InsertAt, LastB); in materialize() local
1220 CN->BaseVal = NewInst; in materialize()
1233 U->set(NewInst); in materialize()
/external/llvm/lib/Target/X86/
DX86WinEHState.cpp504 Instruction *NewInst = NewCS.getInstruction(); in rewriteSetJmpCallSite() local
505 NewInst->takeName(Inst); in rewriteSetJmpCallSite()
506 Inst->replaceAllUsesWith(NewInst); in rewriteSetJmpCallSite()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/X86/
DX86WinEHState.cpp512 Instruction *NewInst = NewCS.getInstruction(); in rewriteSetJmpCallSite() local
513 NewInst->takeName(Inst); in rewriteSetJmpCallSite()
514 Inst->replaceAllUsesWith(NewInst); in rewriteSetJmpCallSite()

12