/external/llvm/lib/Transforms/Utils/ |
BreakCriticalEdges.cpp | 159 BasicBlock *NewBB = BasicBlock::Create(TI->getContext(), 162 BranchInst *NewBI = BranchInst::Create(DestBB, NewBB); 166 TI->setSuccessor(SuccNum, NewBB); 171 F.getBasicBlockList().insert(++FBBI, NewBB); 174 // merge incoming values from NewBB instead of from TIBB. 178 // We no longer enter through TIBB, now we come in through NewBB. 180 // TIBB to come from NewBB. 190 PN->setIncomingBlock(BBIdx, NewBB); 204 // We found another edge to DestBB, go to NewBB instead. 205 TI->setSuccessor(i, NewBB); [all...] |
LoopUnrollRuntime.cpp | 155 BasicBlock *NewBB = CloneBasicBlock(*BB, VMap, ".unr", F); 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", 342 ParentLoop->addBasicBlockToLoop(NewBB, LI->getBase()) [all...] |
CloneFunction.cpp | 41 BasicBlock *NewBB = BasicBlock::Create(BB->getContext(), "", F); 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); [all...] |
BasicBlockUtils.cpp | 304 static void UpdateAnalysisInformation(BasicBlock *OldBB, BasicBlock *NewBB, 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, 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); [all...] |
LoopSimplify.cpp | 110 static void PlaceSplitBlockCarefully(BasicBlock *NewBB, 407 // Make sure that NewBB is put someplace intelligent, which doesn't mess up 495 void PlaceSplitBlockCarefully(BasicBlock *NewBB, 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 = 585 // Make sure that NewBB is put someplace intelligent, which doesn't mess up 587 PlaceSplitBlockCarefully(NewBB, OuterLoopPreds, L) [all...] |
CodeExtractor.cpp | 214 BasicBlock *NewBB = Header->splitBasicBlock(AfterPHIs, 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());
|
SimplifyCFG.cpp | [all...] |
/external/llvm/lib/Target/AArch64/ |
AArch64BranchFixupPass.cpp | 364 MachineBasicBlock *NewBB = 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/Target/ARM/ |
ARMConstantIslandPass.cpp | 282 void updateForInsertedWaterBlock(MachineBasicBlock *NewBB); 852 void ARMConstantIslands::updateForInsertedWaterBlock(MachineBasicBlock *NewBB) [all...] |
/external/llvm/include/llvm/Analysis/ |
Dominators.h | 236 // 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's immediate dominator and create new dominator tree node fo [all...] |
ProfileInfo.h | 158 const BType *NewBB, bool MergeIdenticalEdges = false); 162 void splitBlock(const BType *BB, const BType* NewBB,
|
LoopInfoImpl.h | 193 /// information. NewBB is set to be a new member of the current loop. 200 addBasicBlockToLoop(BlockT *NewBB, LoopInfoBase<BlockT, LoopT> &LIB) { 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);
|
RegionInfo.h | 718 /// @param NewBB The basic block that was created before OldBB. 720 void splitBlock(BasicBlock* NewBB, BasicBlock *OldBB);
|
LoopInfo.h | 235 /// information. NewBB is set to be a new member of the current loop. 240 void addBasicBlockToLoop(BlockT *NewBB, LoopInfoBase<BlockT, LoopT> &LI);
|
/external/llvm/include/llvm/CodeGen/ |
MachineDominators.h | 159 inline void splitBlock(MachineBasicBlock* NewBB) { 160 DT->splitBlock(NewBB);
|
/external/llvm/lib/CodeGen/ |
StackProtector.cpp | 354 BasicBlock *NewBB = BB->splitBasicBlock(RI, "SP_return"); 357 DT->addNewBlock(NewBB, BB); 366 NewBB->moveAfter(BB); 372 BranchInst::Create(NewBB, FailBB, Cmp, BB);
|
ShadowStackGC.cpp | 165 BasicBlock *NewBB = 170 NewBB->getInstList().remove(CI); 178 NewBB, CleanupBB,
|
/external/llvm/lib/Transforms/Scalar/ |
JumpThreading.cpp | [all...] |
LoopUnswitch.cpp | 820 BasicBlock *NewBB = CloneBasicBlock(LoopBlocks[i], VMap, ".us", F); 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 [all...] |
LoopStrengthReduce.cpp | [all...] |
/external/llvm/lib/Analysis/ |
ProfileInfo.cpp | 362 /// 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, [all...] |
RegionInfo.cpp | 835 void RegionInfo::splitBlock(BasicBlock* NewBB, BasicBlock *OldBB) 839 setRegionFor(NewBB, R); 842 R->replaceEntry(NewBB);
|
/frameworks/compile/libbcc/bcinfo/BitReader_3_0/ |
BitcodeReader.cpp | 202 BasicBlock *NewBB = BasicBlock::Create(Context, "new.lpad", 204 BranchInst::Create(UnwindDest, NewBB); 205 Invoke->setUnwindDest(NewBB); 213 PN->setIncomingBlock(Idx, NewBB); 216 UnwindDest = NewBB; [all...] |
/external/llvm/lib/IR/ |
Constants.cpp | [all...] |