Home
last modified time | relevance | path

Searched refs:LoopBlocks (Results 1 – 15 of 15) sorted by relevance

/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/
DLCSSA.cpp56 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()
DLoopSimplify.cpp401 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()
DLoopUnroll.cpp216 std::vector<BasicBlock*> LoopBlocks = L->getBlocks(); in UnrollLoop() local
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/
DLoopUnswitch.cpp87 std::vector<BasicBlock*> LoopBlocks; member in __anondb7020390111::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/
DLoopUnswitch.cpp198 std::vector<BasicBlock*> LoopBlocks; member in __anonbcfadd0d0111::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 …]
DStructurizeCFG.cpp305 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/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/
DLoopUnswitch.cpp192 std::vector<BasicBlock*> LoopBlocks; member in __anon2e9142650111::LoopUnswitch
1214 LoopBlocks.clear(); in UnswitchNontrivialCondition()
1220 LoopBlocks.push_back(NewPreheader); in UnswitchNontrivialCondition()
1223 LoopBlocks.insert(LoopBlocks.end(), L->block_begin(), L->block_end()); in UnswitchNontrivialCondition()
1237 LoopBlocks.insert(LoopBlocks.end(), ExitBlocks.begin(), ExitBlocks.end()); in UnswitchNontrivialCondition()
1242 NewBlocks.reserve(LoopBlocks.size()); in UnswitchNontrivialCondition()
1244 for (unsigned i = 0, e = LoopBlocks.size(); i != e; ++i) { in UnswitchNontrivialCondition()
1245 BasicBlock *NewBB = CloneBasicBlock(LoopBlocks[i], VMap, ".us", F); in UnswitchNontrivialCondition()
1248 VMap[LoopBlocks[i]] = NewBB; // Keep the BB mapping. in UnswitchNontrivialCondition()
1249 LPM->cloneBasicBlockSimpleAnalysis(LoopBlocks[i], NewBB, L); in UnswitchNontrivialCondition()
[all …]
DStructurizeCFG.cpp330 SmallDenseMap<Loop*, unsigned, 8> LoopBlocks; in orderNodes() local
337 ++LoopBlocks[Loop]; in orderNodes()
354 while (unsigned &BlockCount = LoopBlocks[CurrentLoop]) { in orderNodes()
365 LoopBlocks[CurrentLoop]--; in orderNodes()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/
DLoopUnrollPeel.cpp398 LoopBlocksDFS &LoopBlocks, ValueToValueMapTy &VMap, in cloneLoopBlocks() argument
406 LoopBlocksDFS::RPOIterator BlockBegin = LoopBlocks.beginRPO(); in cloneLoopBlocks()
407 LoopBlocksDFS::RPOIterator BlockEnd = LoopBlocks.endRPO(); in cloneLoopBlocks()
509 LoopBlocksDFS LoopBlocks(L); in peelLoop() local
510 LoopBlocks.perform(LI); in peelLoop()
606 NewBlocks, LoopBlocks, VMap, LVMap, DT, LI); in peelLoop()
DLoopUnrollRuntime.cpp287 std::vector<BasicBlock *> &NewBlocks, LoopBlocksDFS &LoopBlocks, in CloneLoopBlocks() argument
293 LoopBlocksDFS::RPOIterator BlockBegin = LoopBlocks.beginRPO(); in CloneLoopBlocks()
294 LoopBlocksDFS::RPOIterator BlockEnd = LoopBlocks.endRPO(); in CloneLoopBlocks()
731 LoopBlocksDFS LoopBlocks(L); in UnrollRuntimeLoopRemainder() local
732 LoopBlocks.perform(LI); in UnrollRuntimeLoopRemainder()
754 NewPreHeader, NewBlocks, LoopBlocks, VMap, DT, LI); in UnrollRuntimeLoopRemainder()
/external/llvm/lib/Transforms/Utils/
DLoopUnrollRuntime.cpp274 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()
DLoopSimplify.cpp162 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()
/external/deqp-deps/glslang/SPIRV/
DSpvBuilder.h475 struct LoopBlocks { struct
476 LoopBlocks(Block& head, Block& body, Block& merge, Block& continue_target) : in LoopBlocks() argument
480 LoopBlocks(); argument
481 LoopBlocks& operator=(const LoopBlocks&); argument
487 LoopBlocks& makeNewLoop();
729 std::stack<LoopBlocks> loops;
DSpvBuilder.cpp2477 Builder::LoopBlocks& Builder::makeNewLoop() in makeNewLoop()
2487 LoopBlocks blocks(head, body, merge, continue_target); in makeNewLoop()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Hexagon/
DHexagonLoopIdiomRecognition.cpp2305 SmallSet<BasicBlock*,8> LoopBlocks; in coverLoop() local
2307 LoopBlocks.insert(B); in coverLoop()
2322 if (!LoopBlocks.count(PB)) in coverLoop()