Lines Matching refs:loopRep
473 LoopT* loopRep = (*iter); in prepare() local
475 loopRep->getExitingBlocks(exitingBlks); in prepare()
478 BlockT* dummyExitBlk = normalizeInfiniteLoopExit(loopRep); in prepare()
880 LoopT *loopRep = loopInfo->getLoopFor(curBlk); in loopendPatternMatch() local
882 while (loopRep) { in loopendPatternMatch()
883 nestedLoops.push_back(loopRep); in loopendPatternMatch()
884 loopRep = loopRep->getParentLoop(); in loopendPatternMatch()
897 loopRep = *iter; in loopendPatternMatch()
899 if (getLoopLandBlock(loopRep) != NULL) { in loopendPatternMatch()
903 BlockT *loopHeader = loopRep->getHeader(); in loopendPatternMatch()
905 int numBreak = loopbreakPatternMatch(loopRep, loopHeader); in loopendPatternMatch()
911 int numCont = loopcontPatternMatch(loopRep, loopHeader); in loopendPatternMatch()
925 LoopT *loopRep = loopInfo->getLoopFor(curBlk); in loopPatternMatch() local
926 while (loopRep && loopRep->getHeader() == curBlk) { in loopPatternMatch()
927 LoopLandInfo *loopLand = getLoopLandInfo(loopRep); in loopPatternMatch()
936 loopRep = loopRep->getParentLoop(); in loopPatternMatch()
945 int CFGStructurizer<PassT>::loopbreakPatternMatch(LoopT *loopRep, in loopbreakPatternMatch() argument
948 loopRep->getExitingBlocks(exitingBlks); in loopbreakPatternMatch()
955 setLoopLandBlock(loopRep); in loopbreakPatternMatch()
965 BlockT *exitBlk = exitingBlock2ExitBlock(loopRep, exitingBlk); in loopbreakPatternMatch()
1023 LoopT *parentLoopRep = loopRep->getParentLoop(); in loopbreakPatternMatch()
1030 loopRep, in loopbreakPatternMatch()
1036 } else if ((exitLandBlk = addLoopEndbranchBlock(loopRep, in loopbreakPatternMatch()
1061 BlockT *exitBlk = exitingBlock2ExitBlock(loopRep, exitingBlk); in loopbreakPatternMatch()
1101 exitLandBlk = recordLoopLandBlock(loopRep, exitLandBlk, exitBlks, exitBlkSet); in loopbreakPatternMatch()
1112 handleLoopbreak(exitingBlk, exitingLoop, exitBlk, loopRep, exitLandBlk); in loopbreakPatternMatch()
1122 int CFGStructurizer<PassT>::loopcontPatternMatch(LoopT *loopRep, in loopcontPatternMatch() argument
1131 if (loopRep->contains(curBlk)) { in loopcontPatternMatch()
1133 loopHeader, loopRep); in loopcontPatternMatch()
1159 LoopT *loopRep = loopInfo->getLoopFor(src1Blk); in isSameloopDetachedContbreak() local
1160 if (loopRep != NULL && loopRep == loopInfo->getLoopFor(src2Blk)) { in isSameloopDetachedContbreak()
1161 LoopLandInfo *&theEntry = loopLandInfoMap[loopRep]; in isSameloopDetachedContbreak()
1850 LoopT *loopRep, in relocateLoopcontBlock() argument
1900 CFGStructurizer<PassT>::addLoopEndbranchBlock(LoopT *loopRep, in addLoopEndbranchBlock() argument
1912 addLoopEndbranchInitReg(loopRep, endBranchReg); in addLoopEndbranchBlock()
2112 CFGStructurizer<PassT>::exitingBlock2ExitBlock(LoopT *loopRep, in exitingBlock2ExitBlock() argument
2120 if (!loopRep->contains(curBlk)) { in exitingBlock2ExitBlock()
2333 LoopT *loopRep = loopInfo->getLoopFor(curBlk); in isActiveLoophead() local
2334 while (loopRep && loopRep->getHeader() == curBlk) { in isActiveLoophead()
2335 LoopLandInfo *loopLand = getLoopLandInfo(loopRep); in isActiveLoophead()
2346 loopRep = loopRep->getParentLoop(); in isActiveLoophead()
2369 CFGStructurizer<PassT>::recordLoopLandBlock(LoopT *loopRep, BlockT *landBlk, in recordLoopLandBlock() argument
2378 if (loopRep->contains(curBlk) || exitBlkSet.count(curBlk)) { in recordLoopLandBlock()
2407 setLoopLandBlock(loopRep, newLandBlk); in recordLoopLandBlock()
2413 void CFGStructurizer<PassT>::setLoopLandBlock(LoopT *loopRep, BlockT *blk) { in setLoopLandBlock() argument
2414 LoopLandInfo *&theEntry = loopLandInfoMap[loopRep]; in setLoopLandBlock()
2431 << loopRep->getHeader()->getNumber() in setLoopLandBlock()
2437 void CFGStructurizer<PassT>::addLoopBreakOnReg(LoopT *loopRep, RegiT regNum) { in addLoopBreakOnReg() argument
2438 LoopLandInfo *&theEntry = loopLandInfoMap[loopRep]; in addLoopBreakOnReg()
2448 << loopRep->getHeader()->getNumber() in addLoopBreakOnReg()
2454 void CFGStructurizer<PassT>::addLoopContOnReg(LoopT *loopRep, RegiT regNum) { in addLoopContOnReg() argument
2455 LoopLandInfo *&theEntry = loopLandInfoMap[loopRep]; in addLoopContOnReg()
2464 << loopRep->getHeader()->getNumber() in addLoopContOnReg()
2470 void CFGStructurizer<PassT>::addLoopBreakInitReg(LoopT *loopRep, RegiT regNum) { in addLoopBreakInitReg() argument
2471 LoopLandInfo *&theEntry = loopLandInfoMap[loopRep]; in addLoopBreakInitReg()
2480 << loopRep->getHeader()->getNumber() in addLoopBreakInitReg()
2486 void CFGStructurizer<PassT>::addLoopContInitReg(LoopT *loopRep, RegiT regNum) { in addLoopContInitReg() argument
2487 LoopLandInfo *&theEntry = loopLandInfoMap[loopRep]; in addLoopContInitReg()
2496 << loopRep->getHeader()->getNumber() in addLoopContInitReg()
2502 void CFGStructurizer<PassT>::addLoopEndbranchInitReg(LoopT *loopRep, in addLoopEndbranchInitReg() argument
2504 LoopLandInfo *&theEntry = loopLandInfoMap[loopRep]; in addLoopEndbranchInitReg()
2514 << loopRep->getHeader()->getNumber() in addLoopEndbranchInitReg()
2521 CFGStructurizer<PassT>::getLoopLandInfo(LoopT *loopRep) { in getLoopLandInfo() argument
2522 LoopLandInfo *&theEntry = loopLandInfoMap[loopRep]; in getLoopLandInfo()
2529 CFGStructurizer<PassT>::getLoopLandBlock(LoopT *loopRep) { in getLoopLandBlock() argument
2530 LoopLandInfo *&theEntry = loopLandInfoMap[loopRep]; in getLoopLandBlock()
2538 LoopT *loopRep = loopInfo->getLoopFor(curBlk); in hasBackEdge() local
2539 if (loopRep == NULL) in hasBackEdge()
2542 BlockT *loopHeader = loopRep->getHeader(); in hasBackEdge()
2549 unsigned CFGStructurizer<PassT>::getLoopDepth(LoopT *loopRep) { in getLoopDepth() argument
2550 return loopRep ? loopRep->getLoopDepth() : 0; in getLoopDepth()