Searched defs:NewBB (Results 1 - 19 of 19) sorted by relevance

/external/llvm/include/llvm/CodeGen/
H A DMachineDominators.h159 inline void splitBlock(MachineBasicBlock* NewBB) { argument
160 DT->splitBlock(NewBB);
/external/llvm/lib/CodeGen/
H A DStackProtector.cpp354 BasicBlock *NewBB = BB->splitBasicBlock(RI, "SP_return"); local
357 DT->addNewBlock(NewBB, BB);
366 NewBB->moveAfter(BB);
372 BranchInst::Create(NewBB, FailBB, Cmp, BB);
H A DShadowStackGC.cpp165 BasicBlock *NewBB = local
170 NewBB->getInstList().remove(CI);
178 NewBB, CleanupBB,
/external/llvm/lib/Transforms/Utils/
H A DCloneFunction.cpp41 BasicBlock *NewBB = BasicBlock::Create(BB->getContext(), "", F); local
42 if (BB->hasName()) NewBB->setName(BB->getName()+NameSuffix);
52 NewBB->getInstList().push_back(NewInst);
70 return NewBB;
238 BasicBlock *NewBB;
239 BBEntry = NewBB = BasicBlock::Create(BB->getContext());
240 if (BB->hasName()) NewBB->setName(BB->getName()+NameSuffix);
254 VMap[OldBBAddr] = BlockAddress::get(NewFunc, NewBB);
290 NewBB->getInstList().push_back(NewInst);
316 VMap[OldTI] = BranchInst::Create(Dest, NewBB);
402 BasicBlock *NewBB = cast_or_null<BasicBlock>(V); local
428 BasicBlock *NewBB = cast<BasicBlock>(VMap[OldBB]); local
[all...]
H A DLoopUnrollRuntime.cpp155 BasicBlock *NewBB = CloneBasicBlock(*BB, VMap, ".unr", F); local
156 NewBlocks.push_back(NewBB);
159 ParentLoop->addBasicBlockToLoop(NewBB, LI->getBase());
161 VMap[*BB] = NewBB;
165 InsertTop->getTerminator()->setSuccessor(0, NewBB);
174 NewBB->getInstList().erase(NewPHI);
190 NewBB->getTerminator()->eraseFromParent();
191 BranchInst::Create(InsertBot, NewBB);
338 BasicBlock *NewBB = BasicBlock::Create(CompareBB->getContext(), "unr.cmp", local
342 ParentLoop->addBasicBlockToLoop(NewBB, L
[all...]
H A DLoopSimplify.cpp110 static void PlaceSplitBlockCarefully(BasicBlock *NewBB,
407 // Make sure that NewBB is put someplace intelligent, which doesn't mess up
495 void PlaceSplitBlockCarefully(BasicBlock *NewBB, argument
498 // Check to see if NewBB is already well placed.
499 Function::iterator BBI = NewBB; --BBI;
514 if (++BBI != NewBB->getParent()->end() &&
526 NewBB->moveAfter(FoundBB);
582 BasicBlock *NewBB = local
585 // Make sure that NewBB is put someplace intelligent, which doesn't mess up
587 PlaceSplitBlockCarefully(NewBB, OuterLoopPred
[all...]
H A DBasicBlockUtils.cpp304 static void UpdateAnalysisInformation(BasicBlock *OldBB, BasicBlock *NewBB, argument
342 DT->splitBlock(NewBB);
370 InnermostPredLoop->addBasicBlockToLoop(NewBB, LI->getBase());
372 L->addBasicBlockToLoop(NewBB, LI->getBase());
374 L->moveToHeader(NewBB);
379 /// from NewBB. This also updates AliasAnalysis, if available.
380 static void UpdatePHINodes(BasicBlock *OrigBB, BasicBlock *NewBB, argument
383 // Otherwise, create a new PHI node in NewBB for each PHI node in OrigBB.
408 // Create the new PHI node, insert it into NewBB at the end of the block
424 PN->addIncoming(InVal, NewBB);
443 BasicBlock *NewBB = BasicBlock::Create(BB->getContext(), BB->getName()+Suffix, local
[all...]
H A DCodeExtractor.cpp214 BasicBlock *NewBB = Header->splitBasicBlock(AfterPHIs, local
221 Blocks.insert(NewBB);
222 Header = NewBB;
227 DT->splitBlock(NewBB);
234 // changing them to branch to NewBB instead.
238 TI->replaceUsesOfWith(OldPred, NewBB);
242 // just have to update the PHI nodes now, inserting PHI nodes into NewBB.
248 PN->getName()+".ce", NewBB->begin());
H A DSimplifyCFG.cpp2677 BasicBlock *NewBB = BasicBlock::Create(BB->getContext(), "switch.edge", local
2694 SI->addCase(Cst, NewBB);
2696 // NewBB branches to the phi block, add the uncond branch and the phi entry.
2697 Builder.SetInsertPoint(NewBB);
2700 PHIUse->addIncoming(NewCst, NewBB);
2764 BasicBlock *NewBB = BB->splitBasicBlock(BI, "switch.early.test"); local
2770 Builder.CreateCondBr(ExtraCase, EdgeBB, NewBB);
2772 Builder.CreateCondBr(ExtraCase, NewBB, EdgeBB);
2778 AddPredecessorToBlock(EdgeBB, BB, NewBB);
2782 BB = NewBB;
[all...]
/external/llvm/include/llvm/Analysis/
H A DLoopInfoImpl.h193 /// information. NewBB is set to be a new member of the current loop.
200 addBasicBlockToLoop(BlockT *NewBB, LoopInfoBase<BlockT, LoopT> &LIB) { argument
203 assert(NewBB && "Cannot add a null basic block to the loop!");
204 assert(LIB[NewBB] == 0 && "BasicBlock already in the loop!");
209 LIB.BBMap[NewBB] = L;
213 L->Blocks.push_back(NewBB);
H A DDominators.h236 // NewBB is split and now it has one successor. Update dominator tree to
240 typename GraphT::NodeType* NewBB) {
241 assert(std::distance(GraphT::child_begin(NewBB),
242 GraphT::child_end(NewBB)) == 1 &&
243 "NewBB should have a single successor!");
244 typename GraphT::NodeType* NewBBSucc = *GraphT::child_begin(NewBB);
249 InvTraits::child_begin(NewBB),
250 PE = InvTraits::child_end(NewBB); PI != PE; ++PI)
260 if (ND != NewBB && !DT.dominates(NewBBSucc, ND) &&
267 // Find NewBB'
239 Split(DominatorTreeBase<typename GraphT::NodeType>& DT, typename GraphT::NodeType* NewBB) argument
500 changeImmediateDominator(NodeT *BB, NodeT *NewBB) argument
537 splitBlock(NodeT* NewBB) argument
855 splitBlock(BasicBlock* NewBB) argument
[all...]
/external/llvm/lib/Target/AArch64/
H A DAArch64BranchFixupPass.cpp364 MachineBasicBlock *NewBB = local
367 MF->insert(MBBI, NewBB);
369 // Splice the instructions starting with MI over to NewBB.
370 NewBB->splice(NewBB->end(), OrigBB, MI, OrigBB->end());
372 // Add an unconditional branch from OrigBB to NewBB.
376 BuildMI(OrigBB, DebugLoc(), TII->get(AArch64::Bimm)).addMBB(NewBB);
379 // Update the CFG. All succs of OrigBB are now succs of NewBB.
380 NewBB->transferSuccessors(OrigBB);
382 // OrigBB branches to NewBB
[all...]
/external/llvm/lib/Analysis/
H A DRegionInfo.cpp835 void RegionInfo::splitBlock(BasicBlock* NewBB, BasicBlock *OldBB) argument
839 setRegionFor(NewBB, R);
842 R->replaceEntry(NewBB);
H A DProfileInfo.cpp362 /// Splits an edge in the ProfileInfo and redirects flow over NewBB.
368 const BasicBlock *NewBB,
377 Edge n1 = getEdge(FirstBB, NewBB);
378 Edge n2 = getEdge(NewBB, SecondBB);
385 // one, only slice out a proporional part for NewBB.
390 // When the NewBB is completely new, increment the count by one so that
392 if (getExecutionCount(NewBB) == ProfileInfo::MissingValue) succ_count++;
399 // proportional part of the edge weight over NewBB.
403 BlockInformation[F][NewBB] += neww;
442 const BasicBlock* NewBB,
366 splitEdge(const BasicBlock *FirstBB, const BasicBlock *SecondBB, const BasicBlock *NewBB, bool MergeIdenticalEdges) argument
441 splitBlock(const BasicBlock *BB, const BasicBlock* NewBB, BasicBlock *const *Preds, unsigned NumPreds) argument
[all...]
/external/llvm/lib/Transforms/Scalar/
H A DJumpThreading.cpp1381 // copy of the block 'NewBB'. If there are PHI nodes in BB, evaluate them to
1385 BasicBlock *NewBB = BasicBlock::Create(BB->getContext(), local
1388 NewBB->moveAfter(PredBB);
1394 // Clone the non-phi instructions of BB into NewBB, keeping track of the
1399 NewBB->getInstList().push_back(New);
1411 // We didn't copy the terminator from BB over to NewBB, because there is now
1413 BranchInst *NewBI =BranchInst::Create(SuccBB, NewBB);
1417 // PHI nodes for NewBB now.
1418 AddPHINodeEntriesForMappedBlock(SuccBB, BB, NewBB, ValueMapping);
1452 SSAUpdate.AddAvailableValue(NewBB, ValueMappin
1679 BasicBlock *NewBB = BasicBlock::Create(BB->getContext(), "select.unfold", local
[all...]
H A DLoopUnswitch.cpp820 BasicBlock *NewBB = CloneBasicBlock(LoopBlocks[i], VMap, ".us", F); local
822 NewBlocks.push_back(NewBB);
823 VMap[LoopBlocks[i]] = NewBB; // Keep the BB mapping.
824 LPM->cloneBasicBlockSimpleAnalysis(LoopBlocks[i], NewBB, L);
835 // Recalculate unswitching quota, inherit simplified switches info for NewBB,
H A DLoopStrengthReduce.cpp4545 BasicBlock *NewBB = 0; local
4547 NewBB = SplitCriticalEdge(BB, Parent, P,
4553 NewBB = NewBBs[0];
4555 // If NewBB==NULL, then SplitCriticalEdge refused to split because all
4558 if (NewBB) {
4563 NewBB->moveBefore(PN->getParent());
4567 BB = NewBB;
/external/llvm/lib/IR/
H A DConstants.cpp1389 BasicBlock *NewBB = getBasicBlock(); local
1394 NewBB = cast<BasicBlock>(To);
1399 getContext().pImpl->BlockAddresses[std::make_pair(NewF, NewBB)];
1409 setOperand(1, NewBB);
/external/llvm/lib/Target/ARM/
H A DARMConstantIslandPass.cpp282 void updateForInsertedWaterBlock(MachineBasicBlock *NewBB);
852 void ARMConstantIslands::updateForInsertedWaterBlock(MachineBasicBlock *NewBB) { argument
854 NewBB->getParent()->RenumberBlocks(NewBB);
858 BBInfo.insert(BBInfo.begin() + NewBB->getNumber(), BasicBlockInfo());
863 std::lower_bound(WaterList.begin(), WaterList.end(), NewBB,
865 WaterList.insert(IP, NewBB);
876 MachineBasicBlock *NewBB = local
879 MF->insert(MBBI, NewBB);
881 // Splice the instructions starting with MI over to NewBB
920 WaterList.insert(llvm::next(IP), NewBB); local
[all...]

Completed in 282 milliseconds