/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/ |
D | LCSSA.cpp | 56 std::vector<BasicBlock*> LoopBlocks; member 86 return std::binary_search(LoopBlocks.begin(), LoopBlocks.end(), B); in inLoop() 129 LoopBlocks.clear(); in runOnLoop() 130 LoopBlocks.insert(LoopBlocks.end(), L->block_begin(), L->block_end()); in runOnLoop() 131 array_pod_sort(LoopBlocks.begin(), LoopBlocks.end()); in runOnLoop()
|
D | LoopSimplify.cpp | 401 SmallVector<BasicBlock*, 8> LoopBlocks; in RewriteLoopExitBlock() local 408 LoopBlocks.push_back(P); in RewriteLoopExitBlock() 412 assert(!LoopBlocks.empty() && "No edges coming in from outside the loop?"); in RewriteLoopExitBlock() 417 SplitLandingPadPredecessors(Exit, ArrayRef<BasicBlock*>(&LoopBlocks[0], in RewriteLoopExitBlock() 418 LoopBlocks.size()), in RewriteLoopExitBlock() 423 NewExitBB = SplitBlockPredecessors(Exit, &LoopBlocks[0], in RewriteLoopExitBlock() 424 LoopBlocks.size(), ".loopexit", in RewriteLoopExitBlock()
|
D | LoopUnroll.cpp | 216 std::vector<BasicBlock*> LoopBlocks = L->getBlocks(); in UnrollLoop() local
|
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/ |
D | LoopUnswitch.cpp | 87 std::vector<BasicBlock*> LoopBlocks; member in __anon02c629ef0111::LoopUnswitch 592 LoopBlocks.clear(); in UnswitchNontrivialCondition() 598 LoopBlocks.push_back(NewPreheader); in UnswitchNontrivialCondition() 601 LoopBlocks.insert(LoopBlocks.end(), L->block_begin(), L->block_end()); in UnswitchNontrivialCondition() 615 LoopBlocks.insert(LoopBlocks.end(), ExitBlocks.begin(), ExitBlocks.end()); in UnswitchNontrivialCondition() 620 NewBlocks.reserve(LoopBlocks.size()); in UnswitchNontrivialCondition() 622 for (unsigned i = 0, e = LoopBlocks.size(); i != e; ++i) { in UnswitchNontrivialCondition() 623 BasicBlock *NewBB = CloneBasicBlock(LoopBlocks[i], VMap, ".us", F); in UnswitchNontrivialCondition() 625 VMap[LoopBlocks[i]] = NewBB; // Keep the BB mapping. in UnswitchNontrivialCondition() 626 LPM->cloneBasicBlockSimpleAnalysis(LoopBlocks[i], NewBB, L); in UnswitchNontrivialCondition() [all …]
|
/external/llvm/lib/Transforms/Scalar/ |
D | LoopUnswitch.cpp | 198 std::vector<BasicBlock*> LoopBlocks; member in __anonaec0e4c30111::LoopUnswitch 1037 LoopBlocks.clear(); in UnswitchNontrivialCondition() 1043 LoopBlocks.push_back(NewPreheader); in UnswitchNontrivialCondition() 1046 LoopBlocks.insert(LoopBlocks.end(), L->block_begin(), L->block_end()); in UnswitchNontrivialCondition() 1060 LoopBlocks.insert(LoopBlocks.end(), ExitBlocks.begin(), ExitBlocks.end()); in UnswitchNontrivialCondition() 1065 NewBlocks.reserve(LoopBlocks.size()); in UnswitchNontrivialCondition() 1067 for (unsigned i = 0, e = LoopBlocks.size(); i != e; ++i) { in UnswitchNontrivialCondition() 1068 BasicBlock *NewBB = CloneBasicBlock(LoopBlocks[i], VMap, ".us", F); in UnswitchNontrivialCondition() 1071 VMap[LoopBlocks[i]] = NewBB; // Keep the BB mapping. in UnswitchNontrivialCondition() 1072 LPM->cloneBasicBlockSimpleAnalysis(LoopBlocks[i], NewBB, L); in UnswitchNontrivialCondition() [all …]
|
D | StructurizeCFG.cpp | 305 std::map<Loop*, unsigned> LoopBlocks; in orderNodes() local 314 ++LoopBlocks[Loop]; in orderNodes() 332 while (unsigned &BlockCount = LoopBlocks[CurrentLoop]) { in orderNodes() 344 LoopBlocks[CurrentLoop]--; in orderNodes()
|
/external/llvm/lib/Transforms/Utils/ |
D | LoopUnrollRuntime.cpp | 274 LoopBlocksDFS &LoopBlocks, ValueToValueMapTy &VMap, in CloneLoopBlocks() argument 280 LoopBlocksDFS::RPOIterator BlockBegin = LoopBlocks.beginRPO(); in CloneLoopBlocks() 281 LoopBlocksDFS::RPOIterator BlockEnd = LoopBlocks.endRPO(); in CloneLoopBlocks() 591 LoopBlocksDFS LoopBlocks(L); in UnrollRuntimeLoopRemainder() local 592 LoopBlocks.perform(LI); in UnrollRuntimeLoopRemainder() 612 InsertBot, NewPreHeader, NewBlocks, LoopBlocks, VMap, LI); in UnrollRuntimeLoopRemainder()
|
D | LoopSimplify.cpp | 162 SmallVector<BasicBlock*, 8> LoopBlocks; in rewriteLoopExitBlock() local 169 LoopBlocks.push_back(P); in rewriteLoopExitBlock() 173 assert(!LoopBlocks.empty() && "No edges coming in from outside the loop?"); in rewriteLoopExitBlock() 176 NewExitBB = SplitBlockPredecessors(Exit, LoopBlocks, ".loopexit", DT, LI, in rewriteLoopExitBlock()
|