/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/IPO/ |
D | LoopExtractor.cpp | 118 SmallVector<BasicBlock*, 8> ExitBlocks; in runOnLoop() local 119 L->getExitBlocks(ExitBlocks); in runOnLoop() 120 for (unsigned i = 0, e = ExitBlocks.size(); i != e; ++i) in runOnLoop() 121 if (!isa<ReturnInst>(ExitBlocks[i]->getTerminator())) { in runOnLoop() 132 SmallVector<BasicBlock*, 8> ExitBlocks; in runOnLoop() local 133 L->getExitBlocks(ExitBlocks); in runOnLoop() 134 for (unsigned i = 0, e = ExitBlocks.size(); i != e; ++i) in runOnLoop() 135 if (ExitBlocks[i]->isEHPad()) { in runOnLoop()
|
/external/llvm/lib/Transforms/Utils/ |
D | LCSSA.cpp | 56 const SmallVectorImpl<BasicBlock *> &ExitBlocks) { in isExitBlock() argument 57 return find(ExitBlocks, BB) != ExitBlocks.end(); in isExitBlock() 64 const SmallVectorImpl<BasicBlock *> &ExitBlocks, in processInstruction() argument 111 for (BasicBlock *ExitBB : ExitBlocks) { in processInstruction() 165 if (isa<PHINode>(UserBB->begin()) && isExitBlock(UserBB, ExitBlocks)) { in processInstruction() 209 const SmallVectorImpl<BasicBlock *> &ExitBlocks) { in blockDominatesAnExit() argument 211 return llvm::any_of(ExitBlocks, [&](BasicBlock * EB) { in blockDominatesAnExit() 221 SmallVector<BasicBlock *, 8> ExitBlocks; in formLCSSA() local 222 L.getExitBlocks(ExitBlocks); in formLCSSA() 224 if (ExitBlocks.empty()) in formLCSSA() [all …]
|
D | LoopSimplify.cpp | 538 SmallVector<BasicBlock*, 8> ExitBlocks; in simplifyOneLoop() local 539 L->getExitBlocks(ExitBlocks); in simplifyOneLoop() 541 SmallSetVector<BasicBlock *, 8> ExitBlockSet(ExitBlocks.begin(), in simplifyOneLoop() 542 ExitBlocks.end()); in simplifyOneLoop() 614 if (!ExitBlocks.empty()) in simplifyOneLoop() 615 for (unsigned i = 1, e = ExitBlocks.size(); i != e; ++i) in simplifyOneLoop() 616 if (ExitBlocks[i] != ExitBlocks[0]) { in simplifyOneLoop()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/ |
D | LCSSA.cpp | 71 const SmallVectorImpl<BasicBlock *> &ExitBlocks) { in isExitBlock() argument 72 return is_contained(ExitBlocks, BB); in isExitBlock() 102 const SmallVectorImpl<BasicBlock *> &ExitBlocks = LoopExitBlocks[L]; in formLCSSAForInstructions() local 104 if (ExitBlocks.empty()) in formLCSSAForInstructions() 147 for (BasicBlock *ExitBB : ExitBlocks) { in formLCSSAForInstructions() 202 if (isa<PHINode>(UserBB->begin()) && isExitBlock(UserBB, ExitBlocks)) { in formLCSSAForInstructions() 277 Loop &L, DominatorTree &DT, SmallVector<BasicBlock *, 8> &ExitBlocks, in computeBlocksDominatingExits() argument 283 for (BasicBlock *BB : ExitBlocks) in computeBlocksDominatingExits() 331 SmallVector<BasicBlock *, 8> ExitBlocks; in formLCSSA() local 332 L.getExitBlocks(ExitBlocks); in formLCSSA() [all …]
|
/external/llvm-project/llvm/lib/Transforms/Utils/ |
D | LCSSA.cpp | 72 const SmallVectorImpl<BasicBlock *> &ExitBlocks) { in isExitBlock() argument 73 return is_contained(ExitBlocks, BB); in isExitBlock() 106 const SmallVectorImpl<BasicBlock *> &ExitBlocks = LoopExitBlocks[L]; in formLCSSAForInstructions() local 108 if (ExitBlocks.empty()) in formLCSSAForInstructions() 155 for (BasicBlock *ExitBB : ExitBlocks) { in formLCSSAForInstructions() 219 if (isa<PHINode>(UserBB->begin()) && isExitBlock(UserBB, ExitBlocks)) { in formLCSSAForInstructions() 300 Loop &L, const DominatorTree &DT, SmallVector<BasicBlock *, 8> &ExitBlocks, in computeBlocksDominatingExits() argument 306 for (BasicBlock *BB : ExitBlocks) in computeBlocksDominatingExits() 354 SmallVector<BasicBlock *, 8> ExitBlocks; in formLCSSA() local 355 L.getExitBlocks(ExitBlocks); in formLCSSA() [all …]
|
/external/llvm/lib/Transforms/IPO/ |
D | LoopExtractor.cpp | 115 SmallVector<BasicBlock*, 8> ExitBlocks; in runOnLoop() local 116 L->getExitBlocks(ExitBlocks); in runOnLoop() 117 for (unsigned i = 0, e = ExitBlocks.size(); i != e; ++i) in runOnLoop() 118 if (!isa<ReturnInst>(ExitBlocks[i]->getTerminator())) { in runOnLoop() 129 SmallVector<BasicBlock*, 8> ExitBlocks; in runOnLoop() local 130 L->getExitBlocks(ExitBlocks); in runOnLoop() 131 for (unsigned i = 0, e = ExitBlocks.size(); i != e; ++i) in runOnLoop() 132 if (ExitBlocks[i]->isEHPad()) { in runOnLoop()
|
/external/llvm/lib/Transforms/Scalar/ |
D | LoopInstSimplify.cpp | 80 SmallVector<BasicBlock*, 8> ExitBlocks; in runOnLoop() local 81 L->getUniqueExitBlocks(ExitBlocks); in runOnLoop() 82 array_pod_sort(ExitBlocks.begin(), ExitBlocks.end()); in runOnLoop() 170 bool IsExitBlock = std::binary_search(ExitBlocks.begin(), in runOnLoop() 171 ExitBlocks.end(), SuccBB); in runOnLoop()
|
D | LoopUnswitch.cpp | 237 const SmallVectorImpl<BasicBlock *> &ExitBlocks); 1009 const SmallVectorImpl<BasicBlock *> &ExitBlocks){ in SplitExitEdges() argument 1011 for (unsigned i = 0, e = ExitBlocks.size(); i != e; ++i) { in SplitExitEdges() 1012 BasicBlock *ExitBlock = ExitBlocks[i]; in SplitExitEdges() 1048 SmallVector<BasicBlock*, 8> ExitBlocks; in UnswitchNontrivialCondition() local 1049 L->getUniqueExitBlocks(ExitBlocks); in UnswitchNontrivialCondition() 1053 SplitExitEdges(L, ExitBlocks); in UnswitchNontrivialCondition() 1056 ExitBlocks.clear(); in UnswitchNontrivialCondition() 1057 L->getUniqueExitBlocks(ExitBlocks); in UnswitchNontrivialCondition() 1060 LoopBlocks.insert(LoopBlocks.end(), ExitBlocks.begin(), ExitBlocks.end()); in UnswitchNontrivialCondition() [all …]
|
D | LICM.cpp | 251 SmallVector<BasicBlock *, 8> ExitBlocks; in runOnLoop() local 258 AS, ExitBlocks, InsertPts, PIC, LI, DT, TLI, L, CurAST, &SafetyInfo); in runOnLoop() 663 SmallVector<BasicBlock *, 32> ExitBlocks; in sink() local 664 CurLoop->getUniqueExitBlocks(ExitBlocks); in sink() 665 SmallPtrSet<BasicBlock *, 32> ExitBlockSet(ExitBlocks.begin(), in sink() 666 ExitBlocks.end()); in sink() 843 AliasSet &AS, SmallVectorImpl<BasicBlock *> &ExitBlocks, in promoteLoopAccessesToScalars() argument 1018 if (ExitBlocks.empty()) { in promoteLoopAccessesToScalars() 1019 CurLoop->getUniqueExitBlocks(ExitBlocks); in promoteLoopAccessesToScalars() 1021 InsertPts.reserve(ExitBlocks.size()); in promoteLoopAccessesToScalars() [all …]
|
/external/llvm-project/llvm/include/llvm/Analysis/ |
D | LoopInfoImpl.h | 62 SmallVectorImpl<BlockT *> &ExitBlocks) const { in getExitBlocks() argument 68 ExitBlocks.push_back(Succ); in getExitBlocks() 73 SmallVector<BlockT *, 8> ExitBlocks; in hasNoExitBlocks() local 74 getExitBlocks(ExitBlocks); in hasNoExitBlocks() 75 return ExitBlocks.empty(); in hasNoExitBlocks() 83 SmallVector<BlockT *, 8> ExitBlocks; in getExitBlock() local 84 getExitBlocks(ExitBlocks); in getExitBlock() 85 if (ExitBlocks.size() == 1) in getExitBlock() 86 return ExitBlocks[0]; in getExitBlock() 108 SmallVectorImpl<BlockT *> &ExitBlocks, in getUniqueExitBlocksHelper() argument [all …]
|
D | MemorySSAUpdater.h | 106 ArrayRef<BasicBlock *> ExitBlocks, 115 void updateExitBlocksForClonedLoop(ArrayRef<BasicBlock *> ExitBlocks, 119 ArrayRef<BasicBlock *> ExitBlocks, 287 void privateUpdateExitBlocksForClonedLoop(ArrayRef<BasicBlock *> ExitBlocks,
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/ |
D | LoopInfoImpl.h | 63 SmallVectorImpl<BlockT *> &ExitBlocks) const { in getExitBlocks() argument 69 ExitBlocks.push_back(Succ); in getExitBlocks() 77 SmallVector<BlockT *, 8> ExitBlocks; in getExitBlock() local 78 getExitBlocks(ExitBlocks); in getExitBlock() 79 if (ExitBlocks.size() == 1) in getExitBlock() 80 return ExitBlocks[0]; in getExitBlock() 102 SmallVectorImpl<BlockT *> &ExitBlocks, in getUniqueExitBlocksHelper() argument 111 ExitBlocks.push_back(Successor); in getUniqueExitBlocksHelper() 116 SmallVectorImpl<BlockT *> &ExitBlocks) const { in getUniqueExitBlocks() argument 117 getUniqueExitBlocksHelper(this, ExitBlocks, in getUniqueExitBlocks() [all …]
|
D | MemorySSAUpdater.h | 120 ArrayRef<BasicBlock *> ExitBlocks, 129 void updateExitBlocksForClonedLoop(ArrayRef<BasicBlock *> ExitBlocks, 133 ArrayRef<BasicBlock *> ExitBlocks, 301 void privateUpdateExitBlocksForClonedLoop(ArrayRef<BasicBlock *> ExitBlocks,
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/ |
D | SimpleLoopUnswitch.cpp | 988 ArrayRef<BasicBlock *> ExitBlocks, BasicBlock *ParentBB, in buildClonedLoopBlocks() argument 995 NewBlocks.reserve(L.getNumBlocks() + ExitBlocks.size()); in buildClonedLoopBlocks() 1029 for (auto *ExitBB : ExitBlocks) { in buildClonedLoopBlocks() 1217 static void buildClonedLoops(Loop &OrigL, ArrayRef<BasicBlock *> ExitBlocks, in buildClonedLoops() argument 1235 ClonedExitsInLoops.reserve(ExitBlocks.size()); in buildClonedLoops() 1236 for (auto *ExitBB : ExitBlocks) in buildClonedLoops() 1467 deleteDeadClonedBlocks(Loop &L, ArrayRef<BasicBlock *> ExitBlocks, in deleteDeadClonedBlocks() argument 1472 for (BasicBlock *BB : llvm::concat<BasicBlock *const>(L.blocks(), ExitBlocks)) in deleteDeadClonedBlocks() 1497 SmallVectorImpl<BasicBlock *> &ExitBlocks, in deleteDeadBlocksFromLoop() argument 1506 SmallVector<BasicBlock *, 16> DeathCandidates(ExitBlocks.begin(), in deleteDeadBlocksFromLoop() [all …]
|
D | LoopUnswitch.cpp | 244 const SmallVectorImpl<BasicBlock *> &ExitBlocks); 1217 const SmallVectorImpl<BasicBlock *> &ExitBlocks){ in SplitExitEdges() argument 1219 for (unsigned i = 0, e = ExitBlocks.size(); i != e; ++i) { in SplitExitEdges() 1220 BasicBlock *ExitBlock = ExitBlocks[i]; in SplitExitEdges() 1262 SmallVector<BasicBlock*, 8> ExitBlocks; in UnswitchNontrivialCondition() local 1263 L->getUniqueExitBlocks(ExitBlocks); in UnswitchNontrivialCondition() 1267 SplitExitEdges(L, ExitBlocks); in UnswitchNontrivialCondition() 1270 ExitBlocks.clear(); in UnswitchNontrivialCondition() 1271 L->getUniqueExitBlocks(ExitBlocks); in UnswitchNontrivialCondition() 1274 LoopBlocks.insert(LoopBlocks.end(), ExitBlocks.begin(), ExitBlocks.end()); in UnswitchNontrivialCondition() [all …]
|
/external/llvm-project/llvm/lib/Transforms/Scalar/ |
D | SimpleLoopUnswitch.cpp | 1012 ArrayRef<BasicBlock *> ExitBlocks, BasicBlock *ParentBB, in buildClonedLoopBlocks() argument 1019 NewBlocks.reserve(L.getNumBlocks() + ExitBlocks.size()); in buildClonedLoopBlocks() 1053 for (auto *ExitBB : ExitBlocks) { in buildClonedLoopBlocks() 1254 static void buildClonedLoops(Loop &OrigL, ArrayRef<BasicBlock *> ExitBlocks, in buildClonedLoops() argument 1272 ClonedExitsInLoops.reserve(ExitBlocks.size()); in buildClonedLoops() 1273 for (auto *ExitBB : ExitBlocks) in buildClonedLoops() 1504 deleteDeadClonedBlocks(Loop &L, ArrayRef<BasicBlock *> ExitBlocks, in deleteDeadClonedBlocks() argument 1509 for (BasicBlock *BB : llvm::concat<BasicBlock *const>(L.blocks(), ExitBlocks)) in deleteDeadClonedBlocks() 1534 SmallVectorImpl<BasicBlock *> &ExitBlocks, in deleteDeadBlocksFromLoop() argument 1543 SmallVector<BasicBlock *, 16> DeathCandidates(ExitBlocks.begin(), in deleteDeadBlocksFromLoop() [all …]
|
D | LoopUnswitch.cpp | 247 const SmallVectorImpl<BasicBlock *> &ExitBlocks); 1198 Loop *L, const SmallVectorImpl<BasicBlock *> &ExitBlocks) { in splitExitEdges() argument 1200 for (unsigned I = 0, E = ExitBlocks.size(); I != E; ++I) { in splitExitEdges() 1201 BasicBlock *ExitBlock = ExitBlocks[I]; in splitExitEdges() 1243 SmallVector<BasicBlock*, 8> ExitBlocks; in unswitchNontrivialCondition() local 1244 L->getUniqueExitBlocks(ExitBlocks); in unswitchNontrivialCondition() 1248 splitExitEdges(L, ExitBlocks); in unswitchNontrivialCondition() 1251 ExitBlocks.clear(); in unswitchNontrivialCondition() 1252 L->getUniqueExitBlocks(ExitBlocks); in unswitchNontrivialCondition() 1255 LoopBlocks.insert(LoopBlocks.end(), ExitBlocks.begin(), ExitBlocks.end()); in unswitchNontrivialCondition() [all …]
|
D | LICM.cpp | 407 SmallVector<BasicBlock *, 8> ExitBlocks; in runOnLoop() local 408 L->getUniqueExitBlocks(ExitBlocks); in runOnLoop() 411 bool HasCatchSwitch = llvm::any_of(ExitBlocks, [](BasicBlock *Exit) { in runOnLoop() 418 InsertPts.reserve(ExitBlocks.size()); in runOnLoop() 420 MSSAInsertPts.reserve(ExitBlocks.size()); in runOnLoop() 421 for (BasicBlock *ExitBlock : ExitBlocks) { in runOnLoop() 453 PointerMustAliases, ExitBlocks, InsertPts, MSSAInsertPts, PIC, LI, in runOnLoop() 1556 SmallVector<BasicBlock *, 32> ExitBlocks; in splitPredecessorsOfLoopExit() local 1557 CurLoop->getUniqueExitBlocks(ExitBlocks); in splitPredecessorsOfLoopExit() 1558 SmallPtrSet<BasicBlock *, 32> ExitBlockSet(ExitBlocks.begin(), in splitPredecessorsOfLoopExit() [all …]
|
/external/llvm-project/llvm/lib/Transforms/Instrumentation/ |
D | InstrProfiling.cpp | 182 BasicBlock *PH, ArrayRef<BasicBlock *> ExitBlocks, in PGOCounterPromoterHelper() argument 186 : LoadAndStorePromoter({L, S}, SSA), Store(S), ExitBlocks(ExitBlocks), in PGOCounterPromoterHelper() 194 for (unsigned i = 0, e = ExitBlocks.size(); i != e; ++i) { in doExtraRewritesBeforeFinalDeletion() 195 BasicBlock *ExitBlock = ExitBlocks[i]; in doExtraRewritesBeforeFinalDeletion() 226 ArrayRef<BasicBlock *> ExitBlocks; member in __anon53e375c20111::PGOCounterPromoterHelper 240 : LoopToCandidates(LoopToCands), ExitBlocks(), InsertPts(), L(CurLoop), in PGOCounterPromoter() 254 ExitBlocks.push_back(ExitBlock); in PGOCounterPromoter() 262 if (ExitBlocks.size() == 0) in run() 271 for (auto BB : ExitBlocks) in run() 302 L.getLoopPreheader(), ExitBlocks, in run() [all …]
|
/external/llvm-project/llvm/lib/CodeGen/ |
D | MachineLoopUtils.cpp | 135 SmallVector<MachineBasicBlock *, 4> ExitBlocks; in isRegLiveInExitBlocks() local 136 Loop->getExitBlocks(ExitBlocks); in isRegLiveInExitBlocks() 138 for (auto *MBB : ExitBlocks) in isRegLiveInExitBlocks()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/ |
D | MachineLoopUtils.cpp | 136 SmallVector<MachineBasicBlock *, 4> ExitBlocks; in isRegLiveInExitBlocks() local 137 Loop->getExitBlocks(ExitBlocks); in isRegLiveInExitBlocks() 139 for (auto *MBB : ExitBlocks) in isRegLiveInExitBlocks()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Instrumentation/ |
D | InstrProfiling.cpp | 184 BasicBlock *PH, ArrayRef<BasicBlock *> ExitBlocks, in PGOCounterPromoterHelper() argument 188 : LoadAndStorePromoter({L, S}, SSA), Store(S), ExitBlocks(ExitBlocks), in PGOCounterPromoterHelper() 196 for (unsigned i = 0, e = ExitBlocks.size(); i != e; ++i) { in doExtraRewritesBeforeFinalDeletion() 197 BasicBlock *ExitBlock = ExitBlocks[i]; in doExtraRewritesBeforeFinalDeletion() 228 ArrayRef<BasicBlock *> ExitBlocks; member in __anonc7f79bb60111::PGOCounterPromoterHelper 242 : LoopToCandidates(LoopToCands), ExitBlocks(), InsertPts(), L(CurLoop), in PGOCounterPromoter() 251 ExitBlocks.push_back(ExitBlock); in PGOCounterPromoter() 259 if (ExitBlocks.size() == 0) in run() 287 L.getLoopPreheader(), ExitBlocks, in run() 367 SmallVector<BasicBlock *, 8> ExitBlocks; member in __anonc7f79bb60111::PGOCounterPromoter
|
/external/llvm/lib/Analysis/ |
D | LoopInfo.cpp | 325 SmallVector<BasicBlock *, 4> ExitBlocks; in hasDedicatedExits() local 326 getExitBlocks(ExitBlocks); in hasDedicatedExits() 327 for (BasicBlock *BB : ExitBlocks) in hasDedicatedExits() 336 Loop::getUniqueExitBlocks(SmallVectorImpl<BasicBlock *> &ExitBlocks) const { in getUniqueExitBlocks() 362 ExitBlocks.push_back(Successor); in getUniqueExitBlocks() 372 ExitBlocks.push_back(Successor); in getUniqueExitBlocks()
|
/external/llvm/include/llvm/Analysis/ |
D | LoopInfoImpl.h | 64 getExitBlocks(SmallVectorImpl<BlockT*> &ExitBlocks) const { in getExitBlocks() argument 72 ExitBlocks.push_back(*I); in getExitBlocks() 79 SmallVector<BlockT*, 8> ExitBlocks; in getExitBlock() local 80 getExitBlocks(ExitBlocks); in getExitBlock() 81 if (ExitBlocks.size() == 1) in getExitBlock() 82 return ExitBlocks[0]; in getExitBlock()
|
/external/llvm-project/llvm/lib/Transforms/IPO/ |
D | LoopExtractor.cpp | 205 SmallVector<BasicBlock *, 8> ExitBlocks; in runOnFunction() local 206 TLL->getExitBlocks(ExitBlocks); in runOnFunction() 207 for (auto *ExitBlock : ExitBlocks) in runOnFunction()
|