/external/llvm-project/llvm/lib/Transforms/Utils/ |
D | FixIrreducible.cpp | 117 static void reconnectChildLoops(LoopInfo &LI, Loop *ParentLoop, Loop *NewLoop, in INITIALIZE_PASS_DEPENDENCY() 127 return L == NewLoop || Blocks.count(L->getHeader()) == 0; in INITIALIZE_PASS_DEPENDENCY() 141 LI.changeLoopFor(BB, NewLoop); in INITIALIZE_PASS_DEPENDENCY() 151 NewLoop->addChildLoop(Child); in INITIALIZE_PASS_DEPENDENCY() 197 auto NewLoop = LI.AllocateLoop(); in createNaturalLoopInternal() local 199 ParentLoop->addChildLoop(NewLoop); in createNaturalLoopInternal() 201 LI.addTopLevelLoop(NewLoop); in createNaturalLoopInternal() 211 NewLoop->addBasicBlockToLoop(G, LI); in createNaturalLoopInternal() 216 NewLoop->addBlockEntry(BB); in createNaturalLoopInternal() 220 LI.changeLoopFor(BB, NewLoop); in createNaturalLoopInternal() [all …]
|
D | CloneFunction.cpp | 765 Loop *NewLoop = LI->AllocateLoop(); in cloneLoopWithPreheader() local 766 LMap[OrigLoop] = NewLoop; in cloneLoopWithPreheader() 768 ParentLoop->addChildLoop(NewLoop); in cloneLoopWithPreheader() 770 LI->addTopLevelLoop(NewLoop); in cloneLoopWithPreheader() 787 Loop *&NewLoop = LMap[CurLoop]; in cloneLoopWithPreheader() local 788 if (!NewLoop) { in cloneLoopWithPreheader() 789 NewLoop = LI->AllocateLoop(); in cloneLoopWithPreheader() 797 NewParentLoop->addChildLoop(NewLoop); in cloneLoopWithPreheader() 803 Loop *&NewLoop = LMap[CurLoop]; in cloneLoopWithPreheader() local 804 assert(NewLoop && "Expecting new loop to be allocated"); in cloneLoopWithPreheader() [all …]
|
D | LoopUnrollRuntime.cpp | 400 Loop *NewLoop = NewLoops[L]; in CloneLoopBlocks() local 401 assert(NewLoop && "L should have been cloned"); in CloneLoopBlocks() 402 MDNode *LoopID = NewLoop->getLoopID(); in CloneLoopBlocks() 407 return NewLoop; in CloneLoopBlocks() 412 NewLoop->setLoopID(NewLoopID.getValue()); in CloneLoopBlocks() 416 return NewLoop; in CloneLoopBlocks() 420 NewLoop->setLoopAlreadyUnrolled(); in CloneLoopBlocks() 421 return NewLoop; in CloneLoopBlocks()
|
D | LoopUnroll.cpp | 144 Loop *&NewLoop = NewLoops[OldLoop]; in addClonedBlockToLoopInfo() local 145 if (!NewLoop) { in addClonedBlockToLoopInfo() 150 NewLoop = LI->AllocateLoop(); in addClonedBlockToLoopInfo() 154 NewLoopParent->addChildLoop(NewLoop); in addClonedBlockToLoopInfo() 156 LI->addTopLevelLoop(NewLoop); in addClonedBlockToLoopInfo() 158 NewLoop->addBasicBlockToLoop(ClonedBB, *LI); in addClonedBlockToLoopInfo() 161 NewLoop->addBasicBlockToLoop(ClonedBB, *LI); in addClonedBlockToLoopInfo()
|
/external/llvm-project/polly/lib/CodeGen/ |
D | LoopGenerators.cpp | 104 Loop *NewLoop = LI.AllocateLoop(); in createLoop() local 107 OuterLoop->addChildLoop(NewLoop); in createLoop() 109 LI.addTopLevelLoop(NewLoop); in createLoop() 117 NewLoop->addBasicBlockToLoop(HeaderBB, LI); in createLoop() 122 Annotator->pushLoop(NewLoop, Parallel); in createLoop() 162 Annotator->annotateLoopLatch(B, NewLoop, Parallel, LoopVectDisabled); in createLoop()
|
/external/llvm/lib/Transforms/Utils/ |
D | LoopUnrollRuntime.cpp | 282 Loop *NewLoop = nullptr; in CloneLoopBlocks() local 285 NewLoop = new Loop(); in CloneLoopBlocks() 287 ParentLoop->addChildLoop(NewLoop); in CloneLoopBlocks() 289 LI->addTopLevelLoop(NewLoop); in CloneLoopBlocks() 298 if (NewLoop) in CloneLoopBlocks() 299 NewLoop->addBasicBlockToLoop(NewBB, *LI); in CloneLoopBlocks() 360 if (NewLoop) { in CloneLoopBlocks() 365 MDNode *LoopID = NewLoop->getLoopID(); in CloneLoopBlocks() 380 LLVMContext &Context = NewLoop->getHeader()->getContext(); in CloneLoopBlocks() 389 NewLoop->setLoopID(NewLoopID); in CloneLoopBlocks()
|
D | CloneFunction.cpp | 665 Loop *NewLoop = new Loop(); in cloneLoopWithPreheader() local 667 ParentLoop->addChildLoop(NewLoop); in cloneLoopWithPreheader() 669 LI->addTopLevelLoop(NewLoop); in cloneLoopWithPreheader() 690 NewLoop->addBasicBlockToLoop(NewBB, *LI); in cloneLoopWithPreheader() 709 NewLoop->getHeader()->getIterator(), F->end()); in cloneLoopWithPreheader() 711 return NewLoop; in cloneLoopWithPreheader()
|
D | LoopUnroll.cpp | 404 Loop *&NewLoop = NewLoops[OldLoop]; in UnrollLoop() local 405 if (!NewLoop) { in UnrollLoop() 413 NewLoop = new Loop; in UnrollLoop() 414 NewLoopParent->addChildLoop(NewLoop); in UnrollLoop() 420 NewLoop->addBasicBlockToLoop(New, *LI); in UnrollLoop()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/ |
D | CloneFunction.cpp | 761 Loop *NewLoop = LI->AllocateLoop(); in cloneLoopWithPreheader() local 762 LMap[OrigLoop] = NewLoop; in cloneLoopWithPreheader() 764 ParentLoop->addChildLoop(NewLoop); in cloneLoopWithPreheader() 766 LI->addTopLevelLoop(NewLoop); in cloneLoopWithPreheader() 783 Loop *&NewLoop = LMap[CurLoop]; in cloneLoopWithPreheader() local 784 if (!NewLoop) { in cloneLoopWithPreheader() 785 NewLoop = LI->AllocateLoop(); in cloneLoopWithPreheader() 793 NewParentLoop->addChildLoop(NewLoop); in cloneLoopWithPreheader() 799 Loop *&NewLoop = LMap[CurLoop]; in cloneLoopWithPreheader() local 800 assert(NewLoop && "Expecting new loop to be allocated"); in cloneLoopWithPreheader() [all …]
|
D | LoopUnrollRuntime.cpp | 399 Loop *NewLoop = NewLoops[L]; in CloneLoopBlocks() local 400 assert(NewLoop && "L should have been cloned"); in CloneLoopBlocks() 401 MDNode *LoopID = NewLoop->getLoopID(); in CloneLoopBlocks() 406 return NewLoop; in CloneLoopBlocks() 411 NewLoop->setLoopID(NewLoopID.getValue()); in CloneLoopBlocks() 415 return NewLoop; in CloneLoopBlocks() 419 NewLoop->setLoopAlreadyUnrolled(); in CloneLoopBlocks() 420 return NewLoop; in CloneLoopBlocks()
|
D | LoopUnroll.cpp | 139 Loop *&NewLoop = NewLoops[OldLoop]; in addClonedBlockToLoopInfo() local 140 if (!NewLoop) { in addClonedBlockToLoopInfo() 145 NewLoop = LI->AllocateLoop(); in addClonedBlockToLoopInfo() 149 NewLoopParent->addChildLoop(NewLoop); in addClonedBlockToLoopInfo() 151 LI->addTopLevelLoop(NewLoop); in addClonedBlockToLoopInfo() 153 NewLoop->addBasicBlockToLoop(ClonedBB, *LI); in addClonedBlockToLoopInfo() 156 NewLoop->addBasicBlockToLoop(ClonedBB, *LI); in addClonedBlockToLoopInfo()
|
/external/llvm/include/llvm/Analysis/ |
D | LoopInfo.h | 581 LoopT *NewLoop) { in changeTopLevelLoop() argument 584 *I = NewLoop; in changeTopLevelLoop() 585 assert(!NewLoop->ParentLoop && !OldLoop->ParentLoop && in changeTopLevelLoop() 693 auto *NewLoop = getLoopFor(NewBB); in movementPreservesLCSSAForm() local 695 if (OldLoop == NewLoop) in movementPreservesLCSSAForm() 711 if (!Contains(NewLoop, OldLoop)) { in movementPreservesLCSSAForm() 716 if (UBB != NewBB && getLoopFor(UBB) != NewLoop) in movementPreservesLCSSAForm() 724 if (!Contains(OldLoop, NewLoop)) { in movementPreservesLCSSAForm() 738 if (DefBlock != NewBB && getLoopFor(DefBlock) != NewLoop) in movementPreservesLCSSAForm()
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/ |
D | LoopInfo.h | 981 void changeTopLevelLoop(LoopT *OldLoop, LoopT *NewLoop) { in changeTopLevelLoop() argument 984 *I = NewLoop; in changeTopLevelLoop() 985 assert(!NewLoop->ParentLoop && !OldLoop->ParentLoop && in changeTopLevelLoop() 1120 auto *NewLoop = getLoopFor(NewBB); in movementPreservesLCSSAForm() local 1122 if (OldLoop == NewLoop) in movementPreservesLCSSAForm() 1138 if (!Contains(NewLoop, OldLoop)) { in movementPreservesLCSSAForm() 1143 if (UBB != NewBB && getLoopFor(UBB) != NewLoop) in movementPreservesLCSSAForm() 1151 if (!Contains(OldLoop, NewLoop)) { in movementPreservesLCSSAForm() 1165 if (DefBlock != NewBB && getLoopFor(DefBlock) != NewLoop) in movementPreservesLCSSAForm()
|
/external/llvm-project/llvm/include/llvm/Analysis/ |
D | LoopInfo.h | 1011 void changeTopLevelLoop(LoopT *OldLoop, LoopT *NewLoop) { in changeTopLevelLoop() argument 1014 *I = NewLoop; in changeTopLevelLoop() 1015 assert(!NewLoop->ParentLoop && !OldLoop->ParentLoop && in changeTopLevelLoop() 1150 auto *NewLoop = getLoopFor(NewBB); in movementPreservesLCSSAForm() local 1152 if (OldLoop == NewLoop) in movementPreservesLCSSAForm() 1168 if (!Contains(NewLoop, OldLoop)) { in movementPreservesLCSSAForm() 1173 if (UBB != NewBB && getLoopFor(UBB) != NewLoop) in movementPreservesLCSSAForm() 1181 if (!Contains(OldLoop, NewLoop)) { in movementPreservesLCSSAForm() 1195 if (DefBlock != NewBB && getLoopFor(DefBlock) != NewLoop) in movementPreservesLCSSAForm()
|
/external/llvm-project/llvm/unittests/Transforms/Scalar/ |
D | LoopPassManagerTest.cpp | 961 auto *NewLoop = AR.LI.AllocateLoop(); in TEST_F() local 962 L.addChildLoop(NewLoop); in TEST_F() 979 NewLoop->addBasicBlockToLoop(NewLoop010BB, AR.LI); in TEST_F() 981 NewLoop->verifyLoop(); in TEST_F() 983 Updater.addChildLoops({NewLoop}); in TEST_F() 1007 auto *NewLoop = AR.LI.AllocateLoop(); in TEST_F() local 1008 L.addChildLoop(NewLoop); in TEST_F() 1021 NewLoop->addBasicBlockToLoop(NewLoop011BB, AR.LI); in TEST_F() 1022 NewLoop->verifyLoop(); in TEST_F() 1024 Updater.addChildLoops({NewLoop}); in TEST_F() [all …]
|
/external/llvm/include/llvm/CodeGen/ |
D | MachineLoopInfo.h | 131 inline void changeTopLevelLoop(MachineLoop *OldLoop, MachineLoop *NewLoop) { in changeTopLevelLoop() argument 132 LI.changeTopLevelLoop(OldLoop, NewLoop); in changeTopLevelLoop()
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/ |
D | MachineLoopInfo.h | 158 inline void changeTopLevelLoop(MachineLoop *OldLoop, MachineLoop *NewLoop) { in changeTopLevelLoop() argument 159 LI.changeTopLevelLoop(OldLoop, NewLoop); in changeTopLevelLoop()
|
/external/llvm-project/llvm/include/llvm/CodeGen/ |
D | MachineLoopInfo.h | 158 inline void changeTopLevelLoop(MachineLoop *OldLoop, MachineLoop *NewLoop) { in changeTopLevelLoop() argument 159 LI.changeTopLevelLoop(OldLoop, NewLoop); in changeTopLevelLoop()
|
/external/llvm/lib/Transforms/Scalar/ |
D | LoopUnswitch.cpp | 162 void cloneData(const Loop *NewLoop, const Loop *OldLoop, 347 void LUAnalysisCache::cloneData(const Loop *NewLoop, const Loop *OldLoop, in cloneData() argument 350 LoopProperties &NewLoopProps = LoopsProperties[NewLoop]; in cloneData() 1086 Loop *NewLoop = CloneLoop(L, L->getParentLoop(), VMap, LI, LPM); in UnswitchNontrivialCondition() local 1090 BranchesInfo.cloneData(NewLoop, L, VMap); in UnswitchNontrivialCondition() 1150 LoopProcessWorklist.push_back(NewLoop); in UnswitchNontrivialCondition() 1166 if (!LoopProcessWorklist.empty() && LoopProcessWorklist.back() == NewLoop && in UnswitchNontrivialCondition() 1168 RewriteLoopBodyWithConditionConstant(NewLoop, LICHandle, Val, true); in UnswitchNontrivialCondition()
|
D | LoopDistribute.cpp | 402 Loop *NewLoop; in cloneLoops() local 417 I != E; ++I, --Index, TopPH = NewLoop->getLoopPreheader()) { in cloneLoops() 420 NewLoop = Part->cloneLoopWithPreheader(TopPH, Pred, Index, LI, DT); in cloneLoops()
|
/external/llvm-project/llvm/lib/Transforms/Scalar/ |
D | LoopUnswitch.cpp | 167 void cloneData(const Loop *NewLoop, const Loop *OldLoop, 360 void LUAnalysisCache::cloneData(const Loop *NewLoop, const Loop *OldLoop, in cloneData() argument 362 LoopProperties &NewLoopProps = LoopsProperties[NewLoop]; in cloneData() 1276 Loop *NewLoop = cloneLoop(L, L->getParentLoop(), VMap, LI, LPM); in unswitchNontrivialCondition() local 1280 BranchesInfo.cloneData(NewLoop, L, VMap); in unswitchNontrivialCondition() 1360 LoopProcessWorklist.push_back(NewLoop); in unswitchNontrivialCondition() 1377 if (!LoopProcessWorklist.empty() && LoopProcessWorklist.back() == NewLoop && in unswitchNontrivialCondition() 1379 rewriteLoopBodyWithConditionConstant(NewLoop, LICHandle, Val, in unswitchNontrivialCondition()
|
D | LoopDistribute.cpp | 450 Loop *NewLoop; in cloneLoops() local 468 I != E; ++I, --Index, TopPH = NewLoop->getLoopPreheader()) { in cloneLoops() 471 NewLoop = Part->cloneLoopWithPreheader(TopPH, Pred, Index, LI, DT); in cloneLoops() 606 Loop *NewLoop = Part->getDistributedLoop(); in setNewLoopID() local 607 NewLoop->setLoopID(PartitionID.getValue()); in setNewLoopID()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/ |
D | LoopUnswitch.cpp | 166 void cloneData(const Loop *NewLoop, const Loop *OldLoop, 357 void LUAnalysisCache::cloneData(const Loop *NewLoop, const Loop *OldLoop, in cloneData() argument 359 LoopProperties &NewLoopProps = LoopsProperties[NewLoop]; in cloneData() 1296 Loop *NewLoop = CloneLoop(L, L->getParentLoop(), VMap, LI, LPM); in UnswitchNontrivialCondition() local 1300 BranchesInfo.cloneData(NewLoop, L, VMap); in UnswitchNontrivialCondition() 1381 LoopProcessWorklist.push_back(NewLoop); in UnswitchNontrivialCondition() 1398 if (!LoopProcessWorklist.empty() && LoopProcessWorklist.back() == NewLoop && in UnswitchNontrivialCondition() 1400 RewriteLoopBodyWithConditionConstant(NewLoop, LICHandle, Val, true); in UnswitchNontrivialCondition()
|
D | LoopDistribute.cpp | 450 Loop *NewLoop; in cloneLoops() local 468 I != E; ++I, --Index, TopPH = NewLoop->getLoopPreheader()) { in cloneLoops() 471 NewLoop = Part->cloneLoopWithPreheader(TopPH, Pred, Index, LI, DT); in cloneLoops() 606 Loop *NewLoop = Part->getDistributedLoop(); in setNewLoopID() local 607 NewLoop->setLoopID(PartitionID.getValue()); in setNewLoopID()
|
/external/llvm-project/llvm/unittests/Transforms/Utils/ |
D | CloningTest.cpp | 433 Loop *NewLoop = cloneLoopWithPreheader(Preheader, Preheader, L, VMap, in TEST() local 435 EXPECT_NE(NewLoop, nullptr); in TEST() 436 EXPECT_EQ(NewLoop->getSubLoops().size(), 1u); in TEST() 437 Loop::block_iterator BI = NewLoop->block_begin(); in TEST()
|