Home
last modified time | relevance | path

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

123

/external/llvm-project/llvm/lib/Transforms/Utils/
DCallPromotionUtils.cpp107 static void createRetPHINode(Instruction *OrigInst, Instruction *NewInst, in createRetPHINode() argument
121 Phi->addIncoming(NewInst, NewInst->getParent()); in createRetPHINode()
306 CallBase *NewInst = cast<CallBase>(OrigInst->clone()); in versionCallSite() local
307 NewInst->insertBefore(ThenTerm); in versionCallSite()
310 Value *NewRetVal = NewInst; in versionCallSite()
316 NewBitCast->replaceUsesOfWith(OrigInst, NewInst); in versionCallSite()
334 return *NewInst; in versionCallSite()
351 CallBase *NewInst = cast<CallBase>(OrigInst->clone()); in versionCallSite() local
353 NewInst->insertBefore(ThenTerm); in versionCallSite()
359 auto *NewInvoke = cast<InvokeInst>(NewInst); in versionCallSite()
[all …]
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()
340 Instruction *NewInst = II->clone(); in CloneBlock() local
344 if (!isa<PHINode>(NewInst)) { in CloneBlock()
345 RemapInstruction(NewInst, VMap, in CloneBlock()
352 SimplifyInstruction(NewInst, BB->getModule()->getDataLayout())) { in CloneBlock()
359 if (!NewInst->mayHaveSideEffects()) { in CloneBlock()
361 NewInst->deleteValue(); in CloneBlock()
[all …]
DLibCallsShrinkWrap.cpp490 Instruction *NewInst = in shrinkWrapCI() local
492 BasicBlock *CallBB = NewInst->getParent(); in shrinkWrapCI()
/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 …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DCallPromotionUtils.cpp104 static void createRetPHINode(Instruction *OrigInst, Instruction *NewInst, in createRetPHINode() argument
118 Phi->addIncoming(NewInst, NewInst->getParent()); in createRetPHINode()
284 Instruction *NewInst = OrigInst->clone(); in versionCallSite() local
286 NewInst->insertBefore(ThenTerm); in versionCallSite()
292 auto *NewInvoke = cast<InvokeInst>(NewInst); in versionCallSite()
314 createRetPHINode(OrigInst, NewInst, MergeBlock, Builder); in versionCallSite()
316 return NewInst; in versionCallSite()
455 Instruction *NewInst = versionCallSite(CS, Callee, BranchWeights); in promoteCallWithIfThenElse() local
458 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()
336 Instruction *NewInst = II->clone(); in CloneBlock() local
340 if (!isa<PHINode>(NewInst)) { in CloneBlock()
341 RemapInstruction(NewInst, VMap, in CloneBlock()
348 SimplifyInstruction(NewInst, BB->getModule()->getDataLayout())) { in CloneBlock()
355 if (!NewInst->mayHaveSideEffects()) { in CloneBlock()
357 NewInst->deleteValue(); in CloneBlock()
[all …]
DLibCallsShrinkWrap.cpp490 Instruction *NewInst = in shrinkWrapCI() local
492 BasicBlock *CallBB = NewInst->getParent(); in shrinkWrapCI()
/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/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/llvm-project/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-10.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/llvm-project/llvm/lib/Transforms/Instrumentation/
DIndirectCallPromotion.cpp315 CallBase &NewInst = in promoteIndirectCall() local
319 MDBuilder MDB(NewInst.getContext()); in promoteIndirectCall()
320 NewInst.setMetadata( in promoteIndirectCall()
334 return NewInst; in promoteIndirectCall()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Instrumentation/
DIndirectCallPromotion.cpp310 Instruction *NewInst = in promoteIndirectCall() local
314 MDBuilder MDB(NewInst->getContext()); in promoteIndirectCall()
315 NewInst->setMetadata( in promoteIndirectCall()
329 return NewInst; in promoteIndirectCall()
DPGOMemOPSizeOpt.cpp376 Instruction *NewInst = MI->clone(); in perform() local
378 auto *MemI = cast<MemIntrinsic>(NewInst); in perform()
383 CaseBB->getInstList().push_back(NewInst); in perform()
/external/llvm-project/polly/lib/CodeGen/
DBlockGenerators.cpp222 Instruction *NewInst = Inst->clone(); in copyInstScalar() local
230 assert(!isa<StoreInst>(NewInst) && in copyInstScalar()
232 NewInst->deleteValue(); in copyInstScalar()
236 NewInst->replaceUsesOfWith(OldOperand, NewOperand); in copyInstScalar()
239 Builder.Insert(NewInst); in copyInstScalar()
240 BBMap[Inst] = NewInst; in copyInstScalar()
248 if (NewInst->getModule() != Inst->getModule()) in copyInstScalar()
249 NewInst->setDebugLoc(llvm::DebugLoc()); in copyInstScalar()
251 if (!NewInst->getType()->isVoidTy()) in copyInstScalar()
252 NewInst->setName("p_" + Inst->getName()); in copyInstScalar()
[all …]
/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()
/external/swiftshader/third_party/subzero/src/
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()
1565 InstBr *NewInst = nullptr; in shortCircuit() local
1569 NewInst = in shortCircuit()
1574 NewInst = in shortCircuit()
1580 assert(NewInst != nullptr); in shortCircuit()
1581 appendInst(NewInst); in shortCircuit()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DLoopDistribute.cpp222 Instruction *NewInst = &Inst; in removeUnusedInsts() local
224 NewInst = cast<Instruction>(VMap[NewInst]); in removeUnusedInsts()
226 assert(!isa<BranchInst>(NewInst) && in removeUnusedInsts()
228 Unused.push_back(NewInst); in removeUnusedInsts()
/external/llvm-project/llvm/lib/Transforms/Scalar/
DLoopDistribute.cpp222 Instruction *NewInst = &Inst; in removeUnusedInsts() local
224 NewInst = cast<Instruction>(VMap[NewInst]); in removeUnusedInsts()
226 assert(!isa<BranchInst>(NewInst) && in removeUnusedInsts()
228 Unused.push_back(NewInst); in removeUnusedInsts()
/external/llvm-project/llvm/lib/Target/Hexagon/
DHexagonCommonGEP.cpp1089 GetElementPtrInst *NewInst = nullptr; in fabricateGEP() local
1119 NewInst = GetElementPtrInst::Create(ElTy, Input, A, "cgep", &*At); in fabricateGEP()
1120 NewInst->setIsInBounds(RN->Flags & GepNode::InBounds); in fabricateGEP()
1121 LLVM_DEBUG(dbgs() << "new GEP: " << *NewInst << '\n'); in fabricateGEP()
1122 Input = NewInst; in fabricateGEP()
1126 return NewInst; in fabricateGEP()
1206 Value *NewInst = fabricateGEP(NA, InsertAt, LastB); in materialize() local
1216 CN->BaseVal = NewInst; in materialize()
1229 U->set(NewInst); in materialize()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/
DHexagonCommonGEP.cpp1099 GetElementPtrInst *NewInst = nullptr; in fabricateGEP() local
1129 NewInst = GetElementPtrInst::Create(ElTy, Input, A, "cgep", &*At); in fabricateGEP()
1130 NewInst->setIsInBounds(RN->Flags & GepNode::InBounds); in fabricateGEP()
1131 LLVM_DEBUG(dbgs() << "new GEP: " << *NewInst << '\n'); in fabricateGEP()
1132 Input = NewInst; in fabricateGEP()
1136 return NewInst; in fabricateGEP()
1216 Value *NewInst = fabricateGEP(NA, InsertAt, LastB); in materialize() local
1226 CN->BaseVal = NewInst; in materialize()
1239 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()

123