Lines Matching defs:loopRep

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