/external/llvm/lib/Transforms/Utils/ |
BreakCriticalEdges.cpp | 131 BasicBlock *NewBB = BasicBlock::Create(TI->getContext(), 134 BranchInst *NewBI = BranchInst::Create(DestBB, NewBB); 138 TI->setSuccessor(SuccNum, NewBB); 143 F.getBasicBlockList().insert(++FBBI, NewBB); 146 // merge incoming values from NewBB instead of from TIBB. 150 // We no longer enter through TIBB, now we come in through NewBB. 152 // TIBB to come from NewBB. 162 PN->setIncomingBlock(BBIdx, NewBB); 176 // We found another edge to DestBB, go to NewBB instead. 177 TI->setSuccessor(i, NewBB); [all...] |
CloneFunction.cpp | 43 BasicBlock *NewBB = BasicBlock::Create(BB->getContext(), "", F); 44 if (BB->hasName()) NewBB->setName(BB->getName()+NameSuffix); 54 NewBB->getInstList().push_back(NewInst); 72 return NewBB; 255 BasicBlock *NewBB; 256 BBEntry = NewBB = BasicBlock::Create(BB->getContext()); 257 if (BB->hasName()) NewBB->setName(BB->getName()+NameSuffix); 271 VMap[OldBBAddr] = BlockAddress::get(NewFunc, NewBB); 310 NewBB->getInstList().push_back(NewInst); 342 VMap[OldTI] = BranchInst::Create(Dest, NewBB); [all...] |
BasicBlockUtils.cpp | 278 static void UpdateAnalysisInformation(BasicBlock *OldBB, BasicBlock *NewBB, 284 DT->splitBlock(NewBB); 340 InnermostPredLoop->addBasicBlockToLoop(NewBB, *LI); 342 L->addBasicBlockToLoop(NewBB, *LI); 344 L->moveToHeader(NewBB); 348 /// Update the PHI nodes in OrigBB to include the values coming from NewBB. 350 static void UpdatePHINodes(BasicBlock *OrigBB, BasicBlock *NewBB, 353 // Otherwise, create a new PHI node in NewBB for each PHI node in OrigBB. 390 PN->addIncoming(InVal, NewBB); 396 // Create the new PHI node, insert it into NewBB at the end of the bloc [all...] |
/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/ |
BreakCriticalEdges.cpp | 185 BasicBlock *NewBB = BasicBlock::Create(TI->getContext(), 188 BranchInst *NewBI = BranchInst::Create(DestBB, NewBB); 192 TI->setSuccessor(SuccNum, NewBB); 197 F.getBasicBlockList().insert(++FBBI, NewBB); 200 // merge incoming values from NewBB instead of from TIBB. 204 // We no longer enter through TIBB, now we come in through NewBB. 206 // TIBB to come from NewBB. 216 PN->setIncomingBlock(BBIdx, NewBB); 230 // We found another edge to DestBB, go to NewBB instead. 231 TI->setSuccessor(i, NewBB); [all...] |
CloneFunction.cpp | 38 BasicBlock *NewBB = BasicBlock::Create(BB->getContext(), "", F); 39 if (BB->hasName()) NewBB->setName(BB->getName()+NameSuffix); 49 NewBB->getInstList().push_back(NewInst); 68 return NewBB; 223 BasicBlock *NewBB; 224 BBEntry = NewBB = BasicBlock::Create(BB->getContext()); 225 if (BB->hasName()) NewBB->setName(BB->getName()+NameSuffix); 243 NewBB->getInstList().push_back(NewInst); 271 VMap[OldTI] = BranchInst::Create(Dest, NewBB); 285 VMap[OldTI] = BranchInst::Create(Dest, NewBB); [all...] |
BasicBlockUtils.cpp | 320 static void UpdateAnalysisInformation(BasicBlock *OldBB, BasicBlock *NewBB, 358 DT->splitBlock(NewBB); 386 InnermostPredLoop->addBasicBlockToLoop(NewBB, LI->getBase()); 388 L->addBasicBlockToLoop(NewBB, LI->getBase()); 390 L->moveToHeader(NewBB); 395 /// from NewBB. This also updates AliasAnalysis, if available. 396 static void UpdatePHINodes(BasicBlock *OrigBB, BasicBlock *NewBB, 399 // Otherwise, create a new PHI node in NewBB for each PHI node in OrigBB. 424 // Create the new PHI node, insert it into NewBB at the end of the block 440 PN->addIncoming(InVal, NewBB); [all...] |
LoopSimplify.cpp | 104 void PlaceSplitBlockCarefully(BasicBlock *NewBB, 382 BasicBlock *NewBB = 386 NewBB->getTerminator()->setDebugLoc(Header->getFirstNonPHI()->getDebugLoc()); 387 DEBUG(dbgs() << "LoopSimplify: Creating pre-header " << NewBB->getName() 390 // Make sure that NewBB is put someplace intelligent, which doesn't mess up 392 PlaceSplitBlockCarefully(NewBB, OutsideBlocks, L); 394 return NewBB; 480 void LoopSimplify::PlaceSplitBlockCarefully(BasicBlock *NewBB, 483 // Check to see if NewBB is already well placed. 484 Function::iterator BBI = NewBB; --BBI [all...] |
/external/llvm/include/llvm/CodeGen/ |
MachineDominators.h | 47 MachineBasicBlock *NewBB; 56 /// Invariant: NewBBs == all the basic blocks contained in the NewBB 59 /// such as BB == elt.NewBB. 205 inline void splitBlock(MachineBasicBlock* NewBB) { 207 DT->splitBlock(NewBB); 224 /// split with NewBB. 237 MachineBasicBlock *NewBB) { 238 bool Inserted = NewBBs.insert(NewBB).second; 242 CriticalEdgesToSplit.push_back({FromBB, ToBB, NewBB});
|
/prebuilts/clang/host/darwin-x86/clang-3957855/prebuilt_include/llvm/include/llvm/CodeGen/ |
MachineDominators.h | 48 MachineBasicBlock *NewBB; 57 /// Invariant: NewBBs == all the basic blocks contained in the NewBB 60 /// such as BB == elt.NewBB. 208 inline void splitBlock(MachineBasicBlock* NewBB) { 210 DT->splitBlock(NewBB); 227 /// split with NewBB. 240 MachineBasicBlock *NewBB) { 241 bool Inserted = NewBBs.insert(NewBB).second; 245 CriticalEdgesToSplit.push_back({FromBB, ToBB, NewBB});
|
/prebuilts/clang/host/darwin-x86/clang-3960126/prebuilt_include/llvm/include/llvm/CodeGen/ |
MachineDominators.h | 48 MachineBasicBlock *NewBB; 57 /// Invariant: NewBBs == all the basic blocks contained in the NewBB 60 /// such as BB == elt.NewBB. 208 inline void splitBlock(MachineBasicBlock* NewBB) { 210 DT->splitBlock(NewBB); 227 /// split with NewBB. 240 MachineBasicBlock *NewBB) { 241 bool Inserted = NewBBs.insert(NewBB).second; 245 CriticalEdgesToSplit.push_back({FromBB, ToBB, NewBB});
|
/prebuilts/clang/host/darwin-x86/clang-3977809/prebuilt_include/llvm/include/llvm/CodeGen/ |
MachineDominators.h | 48 MachineBasicBlock *NewBB; 57 /// Invariant: NewBBs == all the basic blocks contained in the NewBB 60 /// such as BB == elt.NewBB. 208 inline void splitBlock(MachineBasicBlock* NewBB) { 210 DT->splitBlock(NewBB); 227 /// split with NewBB. 240 MachineBasicBlock *NewBB) { 241 bool Inserted = NewBBs.insert(NewBB).second; 245 CriticalEdgesToSplit.push_back({FromBB, ToBB, NewBB});
|
/prebuilts/clang/host/darwin-x86/clang-4053586/prebuilt_include/llvm/include/llvm/CodeGen/ |
MachineDominators.h | 48 MachineBasicBlock *NewBB; 57 /// Invariant: NewBBs == all the basic blocks contained in the NewBB 60 /// such as BB == elt.NewBB. 208 inline void splitBlock(MachineBasicBlock* NewBB) { 210 DT->splitBlock(NewBB); 227 /// split with NewBB. 240 MachineBasicBlock *NewBB) { 241 bool Inserted = NewBBs.insert(NewBB).second; 245 CriticalEdgesToSplit.push_back({FromBB, ToBB, NewBB});
|
/prebuilts/clang/host/linux-x86/clang-3957855/prebuilt_include/llvm/include/llvm/CodeGen/ |
MachineDominators.h | 48 MachineBasicBlock *NewBB; 57 /// Invariant: NewBBs == all the basic blocks contained in the NewBB 60 /// such as BB == elt.NewBB. 208 inline void splitBlock(MachineBasicBlock* NewBB) { 210 DT->splitBlock(NewBB); 227 /// split with NewBB. 240 MachineBasicBlock *NewBB) { 241 bool Inserted = NewBBs.insert(NewBB).second; 245 CriticalEdgesToSplit.push_back({FromBB, ToBB, NewBB});
|
/prebuilts/clang/host/linux-x86/clang-3960126/prebuilt_include/llvm/include/llvm/CodeGen/ |
MachineDominators.h | 48 MachineBasicBlock *NewBB; 57 /// Invariant: NewBBs == all the basic blocks contained in the NewBB 60 /// such as BB == elt.NewBB. 208 inline void splitBlock(MachineBasicBlock* NewBB) { 210 DT->splitBlock(NewBB); 227 /// split with NewBB. 240 MachineBasicBlock *NewBB) { 241 bool Inserted = NewBBs.insert(NewBB).second; 245 CriticalEdgesToSplit.push_back({FromBB, ToBB, NewBB});
|
/prebuilts/clang/host/linux-x86/clang-3977809/prebuilt_include/llvm/include/llvm/CodeGen/ |
MachineDominators.h | 48 MachineBasicBlock *NewBB; 57 /// Invariant: NewBBs == all the basic blocks contained in the NewBB 60 /// such as BB == elt.NewBB. 208 inline void splitBlock(MachineBasicBlock* NewBB) { 210 DT->splitBlock(NewBB); 227 /// split with NewBB. 240 MachineBasicBlock *NewBB) { 241 bool Inserted = NewBBs.insert(NewBB).second; 245 CriticalEdgesToSplit.push_back({FromBB, ToBB, NewBB});
|
/prebuilts/clang/host/linux-x86/clang-4053586/prebuilt_include/llvm/include/llvm/CodeGen/ |
MachineDominators.h | 48 MachineBasicBlock *NewBB; 57 /// Invariant: NewBBs == all the basic blocks contained in the NewBB 60 /// such as BB == elt.NewBB. 208 inline void splitBlock(MachineBasicBlock* NewBB) { 210 DT->splitBlock(NewBB); 227 /// split with NewBB. 240 MachineBasicBlock *NewBB) { 241 bool Inserted = NewBBs.insert(NewBB).second; 245 CriticalEdgesToSplit.push_back({FromBB, ToBB, NewBB});
|
/external/swiftshader/third_party/LLVM/lib/CodeGen/ |
StackProtector.cpp | 218 BasicBlock *NewBB = BB->splitBasicBlock(RI, "SP_return"); 221 DT->addNewBlock(NewBB, BB); 230 NewBB->moveAfter(BB); 236 BranchInst::Create(NewBB, FailBB, Cmp, BB);
|
DwarfEHPrepare.cpp | 408 BasicBlock *NewBB = BasicBlock::Create(F->getContext(), 412 LPad->getParent()->getBasicBlockList().insert(LPad, NewBB); 414 // Redirect unwind edges from the original landing pad to NewBB. 419 PT->setSuccessor(1, NewBB); 423 // merge incoming values from NewBB instead. 426 pred_iterator PB = pred_begin(NewBB), PE = pred_end(NewBB); 440 // in NewBB. 443 PN->getName()+".unwind", NewBB); 448 // Now use this new PHI as the common incoming value for NewBB in PN [all...] |
/external/llvm/lib/Target/AArch64/ |
AArch64BranchRelaxation.cpp | 228 MachineBasicBlock *NewBB = 230 MF->insert(++OrigBB->getIterator(), NewBB); 232 // Splice the instructions starting with MI over to NewBB. 233 NewBB->splice(NewBB->end(), OrigBB, MI, OrigBB->end()); 235 // Add an unconditional branch from OrigBB to NewBB. 239 BuildMI(OrigBB, DebugLoc(), TII->get(AArch64::B)).addMBB(NewBB); 242 BlockInfo.insert(BlockInfo.begin() + NewBB->getNumber(), BasicBlockInfo()); 253 computeBlockSize(*NewBB); 260 return NewBB; [all...] |
/external/swiftshader/third_party/LLVM/lib/Target/ARM/ |
ARMConstantIslandPass.cpp | 192 void UpdateForInsertedWaterBlock(MachineBasicBlock *NewBB); 701 void ARMConstantIslands::UpdateForInsertedWaterBlock(MachineBasicBlock *NewBB) { 703 NewBB->getParent()->RenumberBlocks(NewBB); 707 BBSizes.insert(BBSizes.begin()+NewBB->getNumber(), 0); 710 BBOffsets.insert(BBOffsets.begin()+NewBB->getNumber(), 0); 715 std::lower_bound(WaterList.begin(), WaterList.end(), NewBB, 717 WaterList.insert(IP, NewBB); 729 MachineBasicBlock *NewBB = 732 MF.insert(MBBI, NewBB); [all...] |
/external/llvm/lib/Target/NVPTX/ |
NVPTXLowerAggrCopies.cpp | 67 BasicBlock *NewBB = 69 BasicBlock *LoopBB = BasicBlock::Create(Context, "loadstoreloop", &F, NewBB); 106 NewBB); 212 BasicBlock *NewBB = 214 BasicBlock *LoopBB = BasicBlock::Create(Context, "loadstoreloop", &F, NewBB); 238 NewBB);
|
/external/llvm/lib/CodeGen/ |
MachineDominators.cpp | 100 if (PredBB == Edge.NewBB) 131 // We know FromBB dominates NewBB. 132 MachineDomTreeNode *NewDTNode = DT->addNewBlock(Edge.NewBB, Edge.FromBB);
|
/external/swiftshader/third_party/LLVM/include/llvm/Analysis/ |
Dominators.h | 224 // NewBB is split and now it has one successor. Update dominator tree to 228 typename GraphT::NodeType* NewBB) { 229 assert(std::distance(GraphT::child_begin(NewBB), 230 GraphT::child_end(NewBB)) == 1 && 231 "NewBB should have a single successor!"); 232 typename GraphT::NodeType* NewBBSucc = *GraphT::child_begin(NewBB); 237 InvTraits::child_begin(NewBB), 238 PE = InvTraits::child_end(NewBB); PI != PE; ++PI) 248 if (ND != NewBB && !DT.dominates(NewBBSucc, ND) && 255 // Find NewBB's immediate dominator and create new dominator tree node fo [all...] |
/external/llvm/lib/Target/Mips/ |
MipsConstantIslandPass.cpp | 385 void updateForInsertedWaterBlock(MachineBasicBlock *NewBB); 837 (MachineBasicBlock *NewBB) { 839 NewBB->getParent()->RenumberBlocks(NewBB); 843 BBInfo.insert(BBInfo.begin() + NewBB->getNumber(), BasicBlockInfo()); 848 std::lower_bound(WaterList.begin(), WaterList.end(), NewBB, 850 WaterList.insert(IP, NewBB); 865 MachineBasicBlock *NewBB = 868 MF->insert(MBBI, NewBB); 870 // Splice the instructions starting with MI over to NewBB [all...] |
/external/llvm/include/llvm/Support/ |
GenericDomTree.h | 251 // NewBB is split and now it has one successor. Update dominator tree to 255 typename GraphT::NodeType *NewBB) { 256 assert(std::distance(GraphT::child_begin(NewBB), 257 GraphT::child_end(NewBB)) == 1 && 258 "NewBB should have a single successor!"); 259 typename GraphT::NodeType *NewBBSucc = *GraphT::child_begin(NewBB); 264 PI = InvTraits::child_begin(NewBB), 265 PE = InvTraits::child_end(NewBB); 277 if (ND != NewBB && !DT.dominates(NewBBSucc, ND) && 284 // Find NewBB's immediate dominator and create new dominator tree node fo [all...] |