/external/llvm/lib/Transforms/Utils/ |
BreakCriticalEdges.cpp | 158 BasicBlock *NewBB = BasicBlock::Create(TI->getContext(), 161 BranchInst *NewBI = BranchInst::Create(DestBB, NewBB); 165 TI->setSuccessor(SuccNum, NewBB); 170 F.getBasicBlockList().insert(++FBBI, NewBB); 173 // merge incoming values from NewBB instead of from TIBB. 177 // We no longer enter through TIBB, now we come in through NewBB. 179 // TIBB to come from NewBB. 189 PN->setIncomingBlock(BBIdx, NewBB); 203 // We found another edge to DestBB, go to NewBB instead. 204 TI->setSuccessor(i, NewBB); [all...] |
LoopUnrollRuntime.cpp | 156 BasicBlock *NewBB = CloneBasicBlock(*BB, VMap, ".unr", F); 157 NewBlocks.push_back(NewBB); 160 ParentLoop->addBasicBlockToLoop(NewBB, LI->getBase()); 162 VMap[*BB] = NewBB; 166 InsertTop->getTerminator()->setSuccessor(0, NewBB); 175 NewBB->getInstList().erase(NewPHI); 191 NewBB->getTerminator()->eraseFromParent(); 192 BranchInst::Create(InsertBot, NewBB); 339 BasicBlock *NewBB = BasicBlock::Create(CompareBB->getContext(), "unr.cmp", 343 ParentLoop->addBasicBlockToLoop(NewBB, LI->getBase()) [all...] |
CloneFunction.cpp | 42 BasicBlock *NewBB = BasicBlock::Create(BB->getContext(), "", F); 43 if (BB->hasName()) NewBB->setName(BB->getName()+NameSuffix); 53 NewBB->getInstList().push_back(NewInst); 71 return NewBB; 292 BasicBlock *NewBB; 293 BBEntry = NewBB = BasicBlock::Create(BB->getContext()); 294 if (BB->hasName()) NewBB->setName(BB->getName()+NameSuffix); 308 VMap[OldBBAddr] = BlockAddress::get(NewFunc, NewBB); 344 NewBB->getInstList().push_back(NewInst); 370 VMap[OldTI] = BranchInst::Create(Dest, NewBB); [all...] |
BasicBlockUtils.cpp | 307 static void UpdateAnalysisInformation(BasicBlock *OldBB, BasicBlock *NewBB, 345 DTWP->getDomTree().splitBlock(NewBB); 373 InnermostPredLoop->addBasicBlockToLoop(NewBB, LI->getBase()); 375 L->addBasicBlockToLoop(NewBB, LI->getBase()); 377 L->moveToHeader(NewBB); 382 /// from NewBB. This also updates AliasAnalysis, if available. 383 static void UpdatePHINodes(BasicBlock *OrigBB, BasicBlock *NewBB, 386 // Otherwise, create a new PHI node in NewBB for each PHI node in OrigBB. 424 PN->addIncoming(InVal, NewBB); 430 // Create the new PHI node, insert it into NewBB at the end of the bloc [all...] |
CodeExtractor.cpp | 215 BasicBlock *NewBB = Header->splitBasicBlock(AfterPHIs, 222 Blocks.insert(NewBB); 223 Header = NewBB; 228 DT->splitBlock(NewBB); 235 // changing them to branch to NewBB instead. 239 TI->replaceUsesOfWith(OldPred, NewBB); 243 // just have to update the PHI nodes now, inserting PHI nodes into NewBB. 249 PN->getName()+".ce", NewBB->begin());
|
LoopSimplify.cpp | 74 static void placeSplitBlockCarefully(BasicBlock *NewBB, 77 // Check to see if NewBB is already well placed. 78 Function::iterator BBI = NewBB; --BBI; 93 if (++BBI != NewBB->getParent()->end() && 105 NewBB->moveAfter(FoundBB); 148 // Make sure that NewBB is put someplace intelligent, which doesn't mess up 289 BasicBlock *NewBB = 292 // Make sure that NewBB is put someplace intelligent, which doesn't mess up 294 placeSplitBlockCarefully(NewBB, OuterLoopPreds, L); [all...] |
SimplifyCFG.cpp | [all...] |
/external/llvm/lib/Target/AArch64/ |
AArch64BranchRelaxation.cpp | 216 MachineBasicBlock *NewBB = 220 MF->insert(MBBI, NewBB); 222 // Splice the instructions starting with MI over to NewBB. 223 NewBB->splice(NewBB->end(), OrigBB, MI, OrigBB->end()); 225 // Add an unconditional branch from OrigBB to NewBB. 229 BuildMI(OrigBB, DebugLoc(), TII->get(AArch64::B)).addMBB(NewBB); 232 BlockInfo.insert(BlockInfo.begin() + NewBB->getNumber(), BasicBlockInfo()); 243 computeBlockSize(*NewBB); 250 return NewBB; [all...] |
AArch64PromoteConstant.cpp | 378 BasicBlock *NewBB = NewPt->getParent(); 387 if (NewBB == CurBB) { 399 BasicBlock *CommonDominator = DT.findNearestCommonDominator(NewBB, CurBB); 404 if (CommonDominator != NewBB) { 411 // else, CommonDominator is the block of NewBB, hence NewBB is the last
|
/external/llvm/include/llvm/Support/ |
GenericDomTree.h | 230 // NewBB is split and now it has one successor. Update dominator tree to 234 typename GraphT::NodeType* NewBB) { 235 assert(std::distance(GraphT::child_begin(NewBB), 236 GraphT::child_end(NewBB)) == 1 && 237 "NewBB should have a single successor!"); 238 typename GraphT::NodeType* NewBBSucc = *GraphT::child_begin(NewBB); 243 InvTraits::child_begin(NewBB), 244 PE = InvTraits::child_end(NewBB); PI != PE; ++PI) 254 if (ND != NewBB && !DT.dominates(NewBBSucc, ND) && 261 // Find NewBB's immediate dominator and create new dominator tree node fo [all...] |
/external/llvm/lib/Target/ARM/ |
ARMConstantIslandPass.cpp | 283 void updateForInsertedWaterBlock(MachineBasicBlock *NewBB); 853 void ARMConstantIslands::updateForInsertedWaterBlock(MachineBasicBlock *NewBB) [all...] |
/external/llvm/lib/Target/Mips/ |
MipsConstantIslandPass.cpp | 395 void updateForInsertedWaterBlock(MachineBasicBlock *NewBB); 856 (MachineBasicBlock *NewBB) { 858 NewBB->getParent()->RenumberBlocks(NewBB); 862 BBInfo.insert(BBInfo.begin() + NewBB->getNumber(), BasicBlockInfo()); 867 std::lower_bound(WaterList.begin(), WaterList.end(), NewBB, 869 WaterList.insert(IP, NewBB); 884 MachineBasicBlock *NewBB = 887 MF->insert(MBBI, NewBB); 889 // Splice the instructions starting with MI over to NewBB [all...] |
/external/llvm/include/llvm/CodeGen/ |
MachineDominators.h | 159 inline void splitBlock(MachineBasicBlock* NewBB) { 160 DT->splitBlock(NewBB);
|
/external/llvm/lib/MC/MCAnalysis/ |
MCModule.cpp | 119 MCBasicBlock *NewBB = &BB->getParent()->createBlock(*NewTA); 120 BB->splitBasicBlock(NewBB);
|
/external/llvm/lib/CodeGen/ |
StackProtector.cpp | 441 BasicBlock *NewBB = BB->splitBasicBlock(RI, "SP_return"); 445 DT->addNewBlock(NewBB, BB); 454 NewBB->moveAfter(BB); 461 B.CreateCondBr(Cmp, NewBB, FailBB);
|
ShadowStackGC.cpp | 166 BasicBlock *NewBB = 171 NewBB->getInstList().remove(CI); 179 NewBB, CleanupBB,
|
/external/llvm/lib/Transforms/Scalar/ |
JumpThreading.cpp | [all...] |
LoopUnswitch.cpp | 814 BasicBlock *NewBB = CloneBasicBlock(LoopBlocks[i], VMap, ".us", F); 816 NewBlocks.push_back(NewBB); 817 VMap[LoopBlocks[i]] = NewBB; // Keep the BB mapping. 818 LPM->cloneBasicBlockSimpleAnalysis(LoopBlocks[i], NewBB, L); 829 // Recalculate unswitching quota, inherit simplified switches info for NewBB, [all...] |
LoopStrengthReduce.cpp | [all...] |
/external/llvm/include/llvm/Analysis/ |
LoopInfoImpl.h | 180 /// information. NewBB is set to be a new member of the current loop. 187 addBasicBlockToLoop(BlockT *NewBB, LoopInfoBase<BlockT, LoopT> &LIB) { 190 assert(NewBB && "Cannot add a null basic block to the loop!"); 191 assert(!LIB[NewBB] && "BasicBlock already in the loop!"); 196 LIB.BBMap[NewBB] = L; 200 L->addBlockEntry(NewBB);
|
RegionInfo.h | 743 /// @param NewBB The basic block that was created before OldBB. 745 void splitBlock(BasicBlock* NewBB, BasicBlock *OldBB);
|
LoopInfo.h | 251 /// information. NewBB is set to be a new member of the current loop. 256 void addBasicBlockToLoop(BlockT *NewBB, LoopInfoBase<BlockT, LoopT> &LI);
|
/external/llvm/lib/Analysis/ |
RegionInfo.cpp | 837 void RegionInfo::splitBlock(BasicBlock* NewBB, BasicBlock *OldBB) 841 setRegionFor(NewBB, R); 844 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/Transforms/Instrumentation/ |
DataFlowSanitizer.cpp | [all...] |