Lines Matching refs:landBlk

225   BlockT *landBlk;  member in llvmCFGStruct::LandInformation
240 LandInformation() : landBlk(NULL) {} in LandInformation()
819 BlockT *landBlk; in ifPatternMatch() local
825 landBlk = *trueBlk->succ_begin(); in ifPatternMatch()
827 landBlk = NULL; in ifPatternMatch()
829 landBlk = falseBlk; in ifPatternMatch()
833 landBlk = trueBlk; in ifPatternMatch()
837 landBlk = *falseBlk->succ_begin(); in ifPatternMatch()
840 landBlk = *trueBlk->succ_begin(); in ifPatternMatch()
848 if (landBlk != NULL && in ifPatternMatch()
851 cloned += improveSimpleJumpintoIf(curBlk, trueBlk, falseBlk, &landBlk); in ifPatternMatch()
864 mergeIfthenelseBlock(branchInstr, curBlk, trueBlk, falseBlk, landBlk); in ifPatternMatch()
929 BlockT *landBlk = loopLand->landBlk; in loopPatternMatch() local
930 assert(landBlk); in loopPatternMatch()
931 if (!isRetiredBlock(landBlk)) { in loopPatternMatch()
1241 BlockT *landBlk, in showImproveSimpleJumpintoIf() argument
1269 if (landBlk) { in showImproveSimpleJumpintoIf()
1270 errs() << ", land = BB" << landBlk->getNumber() << " size = " in showImproveSimpleJumpintoIf()
1271 << landBlk->size() << " numPred = " << landBlk->pred_size(); in showImproveSimpleJumpintoIf()
1274 landBlk->print(errs()); in showImproveSimpleJumpintoIf()
1290 BlockT *landBlk = *plandBlk; in improveSimpleJumpintoIf() local
1302 showImproveSimpleJumpintoIf(headBlk, trueBlk, falseBlk, landBlk, 0); in improveSimpleJumpintoIf()
1328 showImproveSimpleJumpintoIf(headBlk, trueBlk, falseBlk, landBlk, 0); in improveSimpleJumpintoIf()
1353 if (landBlk == NULL) { in improveSimpleJumpintoIf()
1354 landBlk = funcRep->CreateMachineBasicBlock(); in improveSimpleJumpintoIf()
1355 funcRep->push_back(landBlk); //insert to function in improveSimpleJumpintoIf()
1358 trueBlk->addSuccessor(landBlk); in improveSimpleJumpintoIf()
1360 headBlk->addSuccessor(landBlk); in improveSimpleJumpintoIf()
1364 falseBlk->addSuccessor(landBlk); in improveSimpleJumpintoIf()
1366 headBlk->addSuccessor(landBlk); in improveSimpleJumpintoIf()
1372 bool landBlkHasOtherPred = (landBlk->pred_size() > 2); in improveSimpleJumpintoIf()
1377 (landBlk, CFGTraits::insertInstrBefore(landBlk, AMDGPU::ENDIF, passRep)); in improveSimpleJumpintoIf()
1386 CFGTraits::insertCompareInstrBefore(landBlk, insertPos, passRep, cmpResReg, in improveSimpleJumpintoIf()
1388 CFGTraits::insertCondBranchBefore(landBlk, insertPos, in improveSimpleJumpintoIf()
1393 CFGTraits::insertCondBranchBefore(landBlk, insertPos, AMDGPU::IF_LOGICALNZ_i32, in improveSimpleJumpintoIf()
1397 migrateInstruction(trueBlk, landBlk, insertPos); in improveSimpleJumpintoIf()
1406 migrateInstruction(falseBlk, landBlk, insertPos); in improveSimpleJumpintoIf()
1419 for (typename BlockT::pred_iterator predIter = landBlk->pred_begin(), in improveSimpleJumpintoIf()
1420 predIterEnd = landBlk->pred_end(); predIter != predIterEnd; in improveSimpleJumpintoIf()
1430 showImproveSimpleJumpintoIf(headBlk, trueBlk, falseBlk, landBlk, 0); in improveSimpleJumpintoIf()
1435 *plandBlk = landBlk; in improveSimpleJumpintoIf()
1445 BlockT *landBlk) { in handleLoopbreak() argument
1465 mergeLoopbreakBlock(exitingBlk, exitBlk, landBlk, initReg); in handleLoopbreak()
1523 BlockT *landBlk) { in mergeIfthenelseBlock() argument
1537 if (landBlk == NULL) { in mergeIfthenelseBlock()
1540 errs() << "BB" << landBlk->getNumber(); in mergeIfthenelseBlock()
1566 if (landBlk && trueBlk->succ_size()!=0) { in mergeIfthenelseBlock()
1567 trueBlk->removeSuccessor(landBlk); in mergeIfthenelseBlock()
1577 if (landBlk && falseBlk->succ_size() != 0) { in mergeIfthenelseBlock()
1578 falseBlk->removeSuccessor(landBlk); in mergeIfthenelseBlock()
1587 if (landBlk && trueBlk && falseBlk) { in mergeIfthenelseBlock()
1588 curBlk->addSuccessor(landBlk); in mergeIfthenelseBlock()
1596 BlockT *landBlk = loopLand->landBlk; in mergeLooplandBlock() local
1600 << " land = BB" << landBlk->getNumber() << "\n"; in mergeLooplandBlock()
1656 dstBlk->splice(dstBlk->end(), landBlk, landBlk->begin(), landBlk->end()); in mergeLooplandBlock()
1658 for (typename BlockT::succ_iterator iter = landBlk->succ_begin(), in mergeLooplandBlock()
1659 iterEnd = landBlk->succ_end(); iter != iterEnd; ++iter) { in mergeLooplandBlock()
1663 removeSuccessor(landBlk); in mergeLooplandBlock()
1664 retireBlock(dstBlk, landBlk); in mergeLooplandBlock()
2340 BlockT *landBlk = loopLand->landBlk; in isActiveLoophead() local
2341 assert(landBlk); in isActiveLoophead()
2342 if (!isRetiredBlock(landBlk)) { in isActiveLoophead()
2369 CFGStructurizer<PassT>::recordLoopLandBlock(LoopT *loopRep, BlockT *landBlk, in recordLoopLandBlock() argument
2374 for (typename BlockT::pred_iterator predIter = landBlk->pred_begin(), in recordLoopLandBlock()
2375 predIterEnd = landBlk->pred_end(); in recordLoopLandBlock()
2385 BlockT *newLandBlk = landBlk; in recordLoopLandBlock()
2386 if (inpathBlks.size() != landBlk->pred_size()) { in recordLoopLandBlock()
2389 newLandBlk->addSuccessor(landBlk); in recordLoopLandBlock()
2394 CFGTraits::replaceInstrUseOfBlockWith(curBlk, landBlk, newLandBlk); in recordLoopLandBlock()
2396 curBlk->removeSuccessor(landBlk); in recordLoopLandBlock()
2400 if (exitBlks[i] == landBlk) { in recordLoopLandBlock()
2419 assert(theEntry->landBlk == NULL); in setLoopLandBlock()
2427 theEntry->landBlk = blk; in setLoopLandBlock()
2532 return theEntry ? theEntry->landBlk : NULL; in getLoopLandBlock()