• Home
  • Raw
  • Download

Lines Matching refs:It

221   int countActiveBlock(MBBVector::const_iterator It,
357 MBBInfoMap::const_iterator It = BlockInfoMap.find(MBB); in getSCCNum() local
358 if (It == BlockInfoMap.end()) in getSCCNum()
360 return (*It).second->SccNum; in getSCCNum()
365 LoopLandInfoMap::const_iterator It = LLInfoMap.find(LoopRep); in getLoopLandInfo() local
366 if (It == LLInfoMap.end()) in getLoopLandInfo()
368 return (*It).second; in getLoopLandInfo()
384 MBBInfoMap::const_iterator It = BlockInfoMap.find(MBB); in isRetiredBlock() local
385 if (It == BlockInfoMap.end()) in isRetiredBlock()
387 return (*It).second->IsRetired; in isRetiredBlock()
420 int AMDGPUCFGStructurizer::countActiveBlock(MBBVector::const_iterator It, in countActiveBlock() argument
423 while (It != E) { in countActiveBlock()
424 if (!isRetiredBlock(*It)) in countActiveBlock()
426 ++It; in countActiveBlock()
592 MachineBasicBlock::succ_iterator It = MBB->succ_begin(); in getFalseBranch() local
593 MachineBasicBlock::succ_iterator Next = It; in getFalseBranch()
595 return (*It == TrueBranch) ? *Next : *It; in getFalseBranch()
623 for (MachineBasicBlock::iterator It = MBB->begin(); It != MBB->end(); in getLastDebugLocInBB() local
624 ++It) { in getLastDebugLocInBB()
625 MachineInstr *instr = &(*It); in getLastDebugLocInBB()
634 MachineBasicBlock::reverse_iterator It = MBB->rbegin(); in getNormalBlockBranchInstr() local
635 MachineInstr *MI = &*It; in getNormalBlockBranchInstr()
643 for (MachineBasicBlock::reverse_iterator It = MBB->rbegin(), E = MBB->rend(); in getLoopendBlockBranchInstr() local
644 It != E; ++It) { in getLoopendBlockBranchInstr()
646 MachineInstr *MI = &*It; in getLoopendBlockBranchInstr()
658 MachineBasicBlock::reverse_iterator It = MBB->rbegin(); in getReturnInstr() local
659 if (It != MBB->rend()) { in getReturnInstr()
660 MachineInstr *instr = &(*It); in getReturnInstr()
668 MachineBasicBlock::reverse_iterator It = MBB->rbegin(); in getContinueInstr() local
669 if (It != MBB->rend()) { in getContinueInstr()
670 MachineInstr *MI = &(*It); in getContinueInstr()
691 for (MachineBasicBlock::succ_iterator It = SrcMBB->succ_begin(), in cloneSuccessorList() local
692 iterEnd = SrcMBB->succ_end(); It != iterEnd; ++It) in cloneSuccessorList()
693 DstMBB->addSuccessor(*It); // *iter's predecessor is also taken care of in cloneSuccessorList()
700 for (MachineBasicBlock::iterator It = MBB->begin(), E = MBB->end(); in clone() local
701 It != E; ++It) { in clone()
702 MachineInstr *MI = Func->CloneMachineInstr(It); in clone()
726 MachineBasicBlock::iterator It = Pre; in wrapup() local
727 while (It != E) { in wrapup()
729 && It->getOpcode() == AMDGPU::ENDLOOP) in wrapup()
731 Pre = It; in wrapup()
732 ++It; in wrapup()
759 for (MachineLoopInfo::iterator It = MLI->begin(), in prepare() local
760 E = MLI->end(); It != E; ++It) { in prepare()
761 MachineLoop *LoopRep = (*It); in prepare()
775 It = OrderedBlks.begin(), E = OrderedBlks.end(); It != E; ++It) { in prepare() local
776 MachineBasicBlock *MBB = *It; in prepare()
818 SmallVectorImpl<MachineBasicBlock *>::const_iterator It = in run() local
824 It; in run()
830 while (It != E) { in run()
831 MBB = *It; in run()
834 SccBeginIter = It; in run()
847 ++It; in run()
850 if (It == E in run()
851 || getSCCNum(SccBeginMBB) != getSCCNum(*It)) { in run()
854 int sccRemainedNumBlk = countActiveBlock(SccBeginIter, It); in run()
864 It = SccBeginIter; in run()
910 for (MBBInfoMap::iterator It = BlockInfoMap.begin(), E = BlockInfoMap.end(); in run() local
911 It != E; ++It) { in run()
912 if ((*It).second && (*It).second->IsRetired) { in run()
913 assert(((*It).first)->getNumber() != -1); in run()
915 dbgs() << "Erase BB" << ((*It).first)->getNumber() << "\n"; in run()
917 (*It).first->eraseFromParent(); //Remove from the parent Function. in run()
919 delete (*It).second; in run()
937 for (scc_iterator<MachineFunction *> It = scc_begin(MF); !It.isAtEnd(); in orderBlocks() local
938 ++It, ++SccNum) { in orderBlocks()
939 const std::vector<MachineBasicBlock *> &SccNext = *It; in orderBlocks()
951 MachineFunction::iterator It = GTM::nodes_begin(MF), E = GTM::nodes_end(MF); in orderBlocks() local
952 for (; It != E; ++It) { in orderBlocks()
953 MachineBasicBlock *MBB = &(*It); in orderBlocks()
1081 for (auto &It: *MLI) in loopendPatternMatch()
1082 for (MachineLoop *ML : depth_first(It)) in loopendPatternMatch()
1153 GTIM::ChildIteratorType It = GTIM::child_begin(LoopHeader), in loopcontPatternMatch() local
1155 for (; It != E; ++It) { in loopcontPatternMatch()
1156 MachineBasicBlock *MBB = *It; in loopcontPatternMatch()
1165 for (SmallVectorImpl<MachineBasicBlock *>::iterator It = ContMBB.begin(), in loopcontPatternMatch() local
1166 E = ContMBB.end(); It != E; ++It) { in loopcontPatternMatch()
1167 (*It)->removeSuccessor(LoopHeader, true); in loopcontPatternMatch()
1769 for (SmallVectorImpl<MachineBasicBlock *>::iterator It = RetMBB.begin(), in addDummyExitBlock() local
1770 E = RetMBB.end(); It != E; ++It) { in addDummyExitBlock()
1771 MachineBasicBlock *MBB = *It; in addDummyExitBlock()
1863 std::set<MachineBasicBlock *>::const_iterator It = MBBs.begin(); in findNearestCommonPostDom() local
1865 for (CommonDom = *It; It != E && CommonDom; ++It) { in findNearestCommonPostDom()
1866 MachineBasicBlock *MBB = *It; in findNearestCommonPostDom()