Lines Matching defs:dstBlk

1503 void CFGStructurizer<PassT>::mergeSerialBlock(BlockT *dstBlk, BlockT *srcBlk) {
1505 errs() << "serialPattern BB" << dstBlk->getNumber()
1508 //removeUnconditionalBranch(dstBlk);
1509 dstBlk->splice(dstBlk->end(), srcBlk, FirstNonDebugInstr(srcBlk), srcBlk->end());
1511 dstBlk->removeSuccessor(srcBlk);
1512 CFGTraits::cloneSuccessorList(dstBlk, srcBlk);
1515 retireBlock(dstBlk, srcBlk);
1594 void CFGStructurizer<PassT>::mergeLooplandBlock(BlockT *dstBlk,
1599 errs() << "loopPattern header = BB" << dstBlk->getNumber()
1607 CFGTraits::insertAssignInstrBefore(dstBlk, passRep, *iter, 0);
1611 * BREAK_LOGICALZ_i32 or AMDGPU::BREAK_LOGICALNZ statement in the current dstBlk.
1614 InstrT *loopBreakInstr = CFGTraits::getLoopBreakInstr(dstBlk);
1617 CFGTraits::insertInstrBefore(dstBlk, AMDGPU::WHILELOOP, passRep, DLBreak);
1623 CFGTraits::insertAssignInstrBefore(dstBlk, passRep, *iter, 0);
1629 CFGTraits::insertAssignInstrBefore(dstBlk, passRep, *iter, 0);
1632 /* we last inserterd the DebugLoc in the continue statement in the current dstBlk
1635 InstrT *continueInstr = CFGTraits::getContinueInstr(dstBlk);
1638 CFGTraits::insertInstrEnd(dstBlk, AMDGPU::ENDLOOP, passRep, DLContinue);
1644 CFGTraits::insertCondBranchEnd(dstBlk, AMDGPU::BREAK_LOGICALNZ_i32, passRep,
1652 CFGTraits::insertCondBranchEnd(dstBlk, AMDGPU::CONTINUE_LOGICALNZ_i32,
1656 dstBlk->splice(dstBlk->end(), landBlk, landBlk->begin(), landBlk->end());
1660 dstBlk->addSuccessor(*iter); // *iter's predecessor is also taken care of.
1664 retireBlock(dstBlk, landBlk);
1998 CFGStructurizer<PassT>::singlePathTo(BlockT *srcBlk, BlockT *dstBlk,
2000 assert(dstBlk);
2002 if (srcBlk == dstBlk) {
2008 if (srcBlk == dstBlk) {
2024 // If there is a single path from srcBlk to dstBlk, return the last block before
2025 // dstBlk If there is a single path from srcBlk->end without dstBlk, return the
2029 CFGStructurizer<PassT>::singlePathEnd(BlockT *srcBlk, BlockT *dstBlk,
2031 assert(dstBlk);
2033 if (srcBlk == dstBlk) {
2064 BlockT *dstBlk) {
2067 while (srcBlk && srcBlk != dstBlk) {
2133 BlockT *dstBlk,
2151 errs() << "migrateInstruction before splice dstSize = " << dstBlk->size()
2156 dstBlk->splice(insertPos, srcBlk, srcBlk->begin(), spliceEnd);
2159 errs() << "migrateInstruction after splice dstSize = " << dstBlk->size()
2307 void CFGStructurizer<PassT>::retireBlock(BlockT *dstBlk, BlockT *srcBlk) {
3166 static void cloneSuccessorList(MachineBasicBlock *dstBlk,
3170 dstBlk->addSuccessor(*iter); // *iter's predecessor is also taken care of