Home
last modified time | relevance | path

Searched refs:NewBB (Results 1 – 25 of 30) sorted by relevance

12

/external/llvm/lib/Transforms/Utils/
DBreakCriticalEdges.cpp148 BasicBlock *NewBB = BasicBlock::Create(TI->getContext(), in SplitCriticalEdge() local
151 BranchInst *NewBI = BranchInst::Create(DestBB, NewBB); in SplitCriticalEdge()
155 TI->setSuccessor(SuccNum, NewBB); in SplitCriticalEdge()
160 F.getBasicBlockList().insert(++FBBI, NewBB); in SplitCriticalEdge()
179 PN->setIncomingBlock(BBIdx, NewBB); in SplitCriticalEdge()
194 TI->setSuccessor(i, NewBB); in SplitCriticalEdge()
202 return NewBB; in SplitCriticalEdge()
215 if (PN->getIncomingBlock(i) != NewBB) in SplitCriticalEdge()
221 if (P != NewBB) in SplitCriticalEdge()
236 DomTreeNode *NewBBNode = DT->addNewBlock(NewBB, TIBB); in SplitCriticalEdge()
[all …]
DCloneFunction.cpp43 BasicBlock *NewBB = BasicBlock::Create(BB->getContext(), "", F); in CloneBasicBlock() local
44 if (BB->hasName()) NewBB->setName(BB->getName()+NameSuffix); in CloneBasicBlock()
54 NewBB->getInstList().push_back(NewInst); in CloneBasicBlock()
72 return NewBB; in CloneBasicBlock()
310 BasicBlock *NewBB; in CloneBlock() local
311 BBEntry = NewBB = BasicBlock::Create(BB->getContext()); in CloneBlock()
312 if (BB->hasName()) NewBB->setName(BB->getName()+NameSuffix); in CloneBlock()
326 VMap[OldBBAddr] = BlockAddress::get(NewFunc, NewBB); in CloneBlock()
338 Director->handleInstruction(VMap, &*II, NewBB); in CloneBlock()
381 NewBB->getInstList().push_back(NewInst); in CloneBlock()
[all …]
DBasicBlockUtils.cpp316 static void UpdateAnalysisInformation(BasicBlock *OldBB, BasicBlock *NewBB, in UpdateAnalysisInformation() argument
322 DT->splitBlock(NewBB); in UpdateAnalysisInformation()
383 InnermostPredLoop->addBasicBlockToLoop(NewBB, *LI); in UpdateAnalysisInformation()
385 L->addBasicBlockToLoop(NewBB, *LI); in UpdateAnalysisInformation()
387 L->moveToHeader(NewBB); in UpdateAnalysisInformation()
393 static void UpdatePHINodes(BasicBlock *OrigBB, BasicBlock *NewBB, in UpdatePHINodes() argument
433 PN->addIncoming(InVal, NewBB); in UpdatePHINodes()
455 PN->addIncoming(NewPHI, NewBB); in UpdatePHINodes()
494 BasicBlock *NewBB = BasicBlock::Create( in SplitBlockPredecessors() local
498 BranchInst *BI = BranchInst::Create(BB, NewBB); in SplitBlockPredecessors()
[all …]
DLoopUnrollRuntime.cpp166 BasicBlock *NewBB = CloneBasicBlock(*BB, VMap, ".prol", F); in CloneLoopBlocks() local
167 NewBlocks.push_back(NewBB); in CloneLoopBlocks()
170 NewLoop->addBasicBlockToLoop(NewBB, *LI); in CloneLoopBlocks()
172 ParentLoop->addBasicBlockToLoop(NewBB, *LI); in CloneLoopBlocks()
174 VMap[*BB] = NewBB; in CloneLoopBlocks()
178 InsertTop->getTerminator()->setSuccessor(0, NewBB); in CloneLoopBlocks()
186 BranchInst *LatchBR = cast<BranchInst>(NewBB->getTerminator()); in CloneLoopBlocks()
200 NewIdx->addIncoming(IdxSub, NewBB); in CloneLoopBlocks()
DLoopSimplify.cpp80 static void placeSplitBlockCarefully(BasicBlock *NewBB, in placeSplitBlockCarefully() argument
84 Function::iterator BBI = --NewBB->getIterator(); in placeSplitBlockCarefully()
99 if (++BBI != NewBB->getParent()->end() && L->contains(&*BBI)) { in placeSplitBlockCarefully()
110 NewBB->moveAfter(FoundBB); in placeSplitBlockCarefully()
284 BasicBlock *NewBB = SplitBlockPredecessors(Header, OuterLoopPreds, ".outer", in separateNestedLoop() local
289 placeSplitBlockCarefully(NewBB, OuterLoopPreds, L); in separateNestedLoop()
DCodeExtractor.cpp215 BasicBlock *NewBB = Header->splitBasicBlock(AfterPHIs, in severSplitPHINodes() local
222 Blocks.insert(NewBB); in severSplitPHINodes()
223 Header = NewBB; in severSplitPHINodes()
228 DT->splitBlock(NewBB); in severSplitPHINodes()
239 TI->replaceUsesOfWith(OldPred, NewBB); in severSplitPHINodes()
249 PN->getName() + ".ce", &NewBB->front()); in severSplitPHINodes()
DLowerSwitch.cpp168 static void fixPhis(BasicBlock *SuccBB, BasicBlock *OrigBB, BasicBlock *NewBB, in fixPhis() argument
180 PN->setIncomingBlock(Idx, NewBB); in fixPhis()
DInlineFunction.cpp274 if (BasicBlock *NewBB = HandleCallsInBlockInlinedThroughInvoke( in HandleInlinedLandingPad() local
278 Invoke.addIncomingPHIValuesFor(NewBB); in HandleInlinedLandingPad()
372 if (BasicBlock *NewBB = in HandleInlinedEHPad() local
376 UpdatePHINodes(NewBB); in HandleInlinedEHPad()
/external/llvm/include/llvm/CodeGen/
DMachineDominators.h47 MachineBasicBlock *NewBB; member
205 inline void splitBlock(MachineBasicBlock* NewBB) { in splitBlock() argument
207 DT->splitBlock(NewBB); in splitBlock()
235 MachineBasicBlock *NewBB) { in recordSplitCriticalEdge() argument
236 bool Inserted = NewBBs.insert(NewBB).second; in recordSplitCriticalEdge()
240 CriticalEdgesToSplit.push_back({FromBB, ToBB, NewBB}); in recordSplitCriticalEdge()
/external/llvm/lib/Target/AArch64/
DAArch64BranchRelaxation.cpp228 MachineBasicBlock *NewBB = in splitBlockBeforeInstr() local
230 MF->insert(++OrigBB->getIterator(), NewBB); in splitBlockBeforeInstr()
233 NewBB->splice(NewBB->end(), OrigBB, MI, OrigBB->end()); in splitBlockBeforeInstr()
239 BuildMI(OrigBB, DebugLoc(), TII->get(AArch64::B)).addMBB(NewBB); in splitBlockBeforeInstr()
242 BlockInfo.insert(BlockInfo.begin() + NewBB->getNumber(), BasicBlockInfo()); in splitBlockBeforeInstr()
253 computeBlockSize(*NewBB); in splitBlockBeforeInstr()
260 return NewBB; in splitBlockBeforeInstr()
420 MachineBasicBlock *NewBB = splitBlockBeforeInstr(MI); in fixupConditionalBranch() local
430 MBB->replaceSuccessor(FBB, NewBB); in fixupConditionalBranch()
431 NewBB->addSuccessor(FBB); in fixupConditionalBranch()
DAArch64PromoteConstant.cpp372 BasicBlock *NewBB = NewPt->getParent(); in tryAndMerge() local
381 if (NewBB == CurBB) { in tryAndMerge()
393 BasicBlock *CommonDominator = DT.findNearestCommonDominator(NewBB, CurBB); in tryAndMerge()
398 if (CommonDominator != NewBB) { in tryAndMerge()
/external/llvm/lib/Target/ARM/
DARMConstantIslandPass.cpp295 void updateForInsertedWaterBlock(MachineBasicBlock *NewBB);
955 void ARMConstantIslands::updateForInsertedWaterBlock(MachineBasicBlock *NewBB) { in updateForInsertedWaterBlock() argument
957 NewBB->getParent()->RenumberBlocks(NewBB); in updateForInsertedWaterBlock()
961 BBInfo.insert(BBInfo.begin() + NewBB->getNumber(), BasicBlockInfo()); in updateForInsertedWaterBlock()
966 std::lower_bound(WaterList.begin(), WaterList.end(), NewBB, in updateForInsertedWaterBlock()
968 WaterList.insert(IP, NewBB); in updateForInsertedWaterBlock()
979 MachineBasicBlock *NewBB = in splitBlockBeforeInstr() local
982 MF->insert(MBBI, NewBB); in splitBlockBeforeInstr()
985 NewBB->splice(NewBB->end(), OrigBB, MI, OrigBB->end()); in splitBlockBeforeInstr()
993 BuildMI(OrigBB, DebugLoc(), TII->get(Opc)).addMBB(NewBB); in splitBlockBeforeInstr()
[all …]
/external/llvm/include/llvm/Support/
DGenericDomTree.h254 typename GraphT::NodeType *NewBB) { in Split() argument
255 assert(std::distance(GraphT::child_begin(NewBB), in Split()
256 GraphT::child_end(NewBB)) == 1 && in Split()
258 typename GraphT::NodeType *NewBBSucc = *GraphT::child_begin(NewBB); in Split()
263 PI = InvTraits::child_begin(NewBB), in Split()
264 PE = InvTraits::child_end(NewBB); in Split()
276 if (ND != NewBB && !DT.dominates(NewBBSucc, ND) && in Split()
305 DomTreeNodeBase<NodeT> *NewBBNode = DT.addNewBlock(NewBB, NewBBIDom); in Split()
577 void changeImmediateDominator(NodeT *BB, NodeT *NewBB) { in changeImmediateDominator() argument
578 changeImmediateDominator(getNode(BB), getNode(NewBB)); in changeImmediateDominator()
[all …]
/external/llvm/lib/Target/Mips/
DMipsConstantIslandPass.cpp393 void updateForInsertedWaterBlock(MachineBasicBlock *NewBB);
852 (MachineBasicBlock *NewBB) { in updateForInsertedWaterBlock() argument
854 NewBB->getParent()->RenumberBlocks(NewBB); in updateForInsertedWaterBlock()
858 BBInfo.insert(BBInfo.begin() + NewBB->getNumber(), BasicBlockInfo()); in updateForInsertedWaterBlock()
863 std::lower_bound(WaterList.begin(), WaterList.end(), NewBB, in updateForInsertedWaterBlock()
865 WaterList.insert(IP, NewBB); in updateForInsertedWaterBlock()
880 MachineBasicBlock *NewBB = in splitBlockBeforeInstr() local
883 MF->insert(MBBI, NewBB); in splitBlockBeforeInstr()
886 NewBB->splice(NewBB->end(), OrigBB, MI, OrigBB->end()); in splitBlockBeforeInstr()
892 BuildMI(OrigBB, DebugLoc(), TII->get(Mips::Bimm16)).addMBB(NewBB); in splitBlockBeforeInstr()
[all …]
/external/llvm/lib/Target/NVPTX/
DNVPTXLowerAggrCopies.cpp67 BasicBlock *NewBB = in convertMemCpyToLoop() local
69 BasicBlock *LoopBB = BasicBlock::Create(Context, "loadstoreloop", &F, NewBB); in convertMemCpyToLoop()
106 NewBB); in convertMemCpyToLoop()
212 BasicBlock *NewBB = in convertMemSetToLoop() local
214 BasicBlock *LoopBB = BasicBlock::Create(Context, "loadstoreloop", &F, NewBB); in convertMemSetToLoop()
238 NewBB); in convertMemSetToLoop()
/external/llvm/lib/Transforms/Scalar/
DJumpThreading.cpp171 BasicBlock *NewBB, BasicBlock *SuccBB);
1492 BasicBlock *NewBB = BasicBlock::Create(BB->getContext(), in ThreadEdge() local
1495 NewBB->moveAfter(PredBB); in ThreadEdge()
1501 BFI->setBlockFreq(NewBB, NewBBFreq.getFrequency()); in ThreadEdge()
1513 NewBB->getInstList().push_back(New); in ThreadEdge()
1527 BranchInst *NewBI = BranchInst::Create(SuccBB, NewBB); in ThreadEdge()
1532 AddPHINodeEntriesForMappedBlock(SuccBB, BB, NewBB, ValueMapping); in ThreadEdge()
1565 SSAUpdate.AddAvailableValue(NewBB, ValueMapping[&*I]); in ThreadEdge()
1580 PredTerm->setSuccessor(i, NewBB); in ThreadEdge()
1586 SimplifyInstructionsInBlock(NewBB, TLI); in ThreadEdge()
[all …]
DLoopUnswitch.cpp1011 BasicBlock *NewBB = CloneBasicBlock(LoopBlocks[i], VMap, ".us", F); in UnswitchNontrivialCondition() local
1013 NewBlocks.push_back(NewBB); in UnswitchNontrivialCondition()
1014 VMap[LoopBlocks[i]] = NewBB; // Keep the BB mapping. in UnswitchNontrivialCondition()
1015 LPM->cloneBasicBlockSimpleAnalysis(LoopBlocks[i], NewBB, L); in UnswitchNontrivialCondition()
DPlaceSafepoints.cpp633 BasicBlock *NewBB = SplitEdge(Term->getParent(), Header, &DT); in runOnFunction() local
634 PollsNeeded.push_back(NewBB->getTerminator()); in runOnFunction()
/external/llvm/lib/CodeGen/
DMachineDominators.cpp84 if (PredBB == Edge.NewBB) in applySplitCriticalEdges()
116 MachineDomTreeNode *NewDTNode = DT->addNewBlock(Edge.NewBB, Edge.FromBB); in applySplitCriticalEdges()
DStackProtector.cpp436 BasicBlock *NewBB = BB->splitBasicBlock(RI->getIterator(), "SP_return"); in InsertStackProtectors() local
440 DT->addNewBlock(NewBB, BB); in InsertStackProtectors()
449 NewBB->moveAfter(BB); in InsertStackProtectors()
462 B.CreateCondBr(Cmp, NewBB, FailBB, Weights); in InsertStackProtectors()
DShrinkWrap.cpp454 MachineBasicBlock *NewBB; in runOnMachineFunction() local
459 NewBB = Save; in runOnMachineFunction()
465 NewBB = Restore; in runOnMachineFunction()
467 updateSaveRestorePoints(*NewBB, RS.get()); in runOnMachineFunction()
DShadowStackGCLowering.cpp166 BasicBlock *NewBB = CallBB->splitBasicBlock( in Next() local
171 NewBB->getInstList().remove(CI); in Next()
179 InvokeInst::Create(CI->getCalledValue(), NewBB, CleanupBB, Args, in Next()
/external/llvm/include/llvm/Analysis/
DLoopInfo.h269 void addBasicBlockToLoop(BlockT *NewBB, LoopInfoBase<BlockT, LoopT> &LI);
712 auto *NewBB = NewLoc->getParent(); in movementPreservesLCSSAForm() local
716 if (OldBB == NewBB) in movementPreservesLCSSAForm()
720 auto *NewLoop = getLoopFor(NewBB); in movementPreservesLCSSAForm()
743 if (UBB != NewBB && getLoopFor(UBB) != NewLoop) in movementPreservesLCSSAForm()
765 if (DefBlock != NewBB && getLoopFor(DefBlock) != NewLoop) in movementPreservesLCSSAForm()
DLoopInfoImpl.h187 addBasicBlockToLoop(BlockT *NewBB, LoopInfoBase<BlockT, LoopT> &LIB) { in addBasicBlockToLoop() argument
190 assert(NewBB && "Cannot add a null basic block to the loop!"); in addBasicBlockToLoop()
191 assert(!LIB[NewBB] && "BasicBlock already in the loop!"); in addBasicBlockToLoop()
196 LIB.BBMap[NewBB] = L; in addBasicBlockToLoop()
200 L->addBlockEntry(NewBB); in addBasicBlockToLoop()
/external/llvm/include/llvm/Transforms/Utils/
DCloning.h172 BasicBlock *NewBB) = 0;

12