Lines Matching refs:KernelBB
368 MachineBasicBlock *KernelBB, ValueMapTy *VRMap,
371 MachineBasicBlock *KernelBB, ValueMapTy *VRMap,
374 MachineBasicBlock *BB2, MachineBasicBlock *KernelBB,
379 MachineBasicBlock *BB2, MachineBasicBlock *KernelBB,
383 void removeDeadInstructions(MachineBasicBlock *KernelBB,
385 void splitLifetimes(MachineBasicBlock *KernelBB, MBBVectorTy &EpilogBBs,
387 void addBranches(MBBVectorTy &PrologBBs, MachineBasicBlock *KernelBB,
2209 MachineBasicBlock *KernelBB = MF.CreateMachineBasicBlock(BB->getBasicBlock()); in generatePipelinedLoop() local
2222 generateProlog(Schedule, MaxStageCount, KernelBB, VRMap, PrologBBs); in generatePipelinedLoop()
2223 MF.insert(BB->getIterator(), KernelBB); in generatePipelinedLoop()
2238 KernelBB->push_back(NewMI); in generatePipelinedLoop()
2250 KernelBB->push_back(NewMI); in generatePipelinedLoop()
2254 KernelBB->transferSuccessors(BB); in generatePipelinedLoop()
2255 KernelBB->replaceSuccessor(BB, KernelBB); in generatePipelinedLoop()
2257 generateExistingPhis(KernelBB, PrologBBs.back(), KernelBB, KernelBB, Schedule, in generatePipelinedLoop()
2259 generatePhis(KernelBB, PrologBBs.back(), KernelBB, KernelBB, Schedule, VRMap, in generatePipelinedLoop()
2262 DEBUG(dbgs() << "New block\n"; KernelBB->dump();); in generatePipelinedLoop()
2266 generateEpilog(Schedule, MaxStageCount, KernelBB, VRMap, EpilogBBs, in generatePipelinedLoop()
2271 splitLifetimes(KernelBB, EpilogBBs, Schedule); in generatePipelinedLoop()
2274 removeDeadInstructions(KernelBB, EpilogBBs); in generatePipelinedLoop()
2277 addBranches(PrologBBs, KernelBB, EpilogBBs, Schedule, VRMap); in generatePipelinedLoop()
2288 MachineBasicBlock *KernelBB, in generateProlog() argument
2335 PredBB->replaceSuccessor(BB, KernelBB); in generateProlog()
2350 MachineBasicBlock *KernelBB, in generateEpilog() argument
2358 bool checkBranch = TII->analyzeBranch(*KernelBB, TBB, FBB, Cond); in generateEpilog()
2363 MachineBasicBlock::succ_iterator LoopExitI = KernelBB->succ_begin(); in generateEpilog()
2364 if (*LoopExitI == KernelBB) in generateEpilog()
2366 assert(LoopExitI != KernelBB->succ_end() && "Expecting a successor"); in generateEpilog()
2369 MachineBasicBlock *PredBB = KernelBB; in generateEpilog()
2403 generateExistingPhis(NewBB, PrologBBs[i - 1], PredBB, KernelBB, Schedule, in generateEpilog()
2405 generatePhis(NewBB, PrologBBs[i - 1], PredBB, KernelBB, Schedule, VRMap, in generateEpilog()
2428 TII->RemoveBranch(*KernelBB); in generateEpilog()
2429 TII->InsertBranch(*KernelBB, KernelBB, EpilogStart, Cond, DebugLoc()); in generateEpilog()
2473 MachineBasicBlock *KernelBB, SMSchedule &Schedule, ValueMapTy *VRMap, in generateExistingPhis() argument
2586 if (InstOp1->isPHI() && InstOp1->getParent() == KernelBB) in generateExistingPhis()
2587 PhiOp1 = getInitPhiReg(*InstOp1, KernelBB); in generateExistingPhis()
2713 MachineBasicBlock *KernelBB, SMSchedule &Schedule, ValueMapTy *VRMap, in generatePhis() argument
2765 if (InstOp1->isPHI() && InstOp1->getParent() == KernelBB) in generatePhis()
2766 PhiOp1 = getInitPhiReg(*InstOp1, KernelBB); in generatePhis()
2811 void SwingSchedulerDAG::removeDeadInstructions(MachineBasicBlock *KernelBB, in removeDeadInstructions() argument
2865 for (MachineBasicBlock::iterator BBI = KernelBB->instr_begin(), in removeDeadInstructions()
2866 BBE = KernelBB->getFirstNonPHI(); in removeDeadInstructions()
2887 void SwingSchedulerDAG::splitLifetimes(MachineBasicBlock *KernelBB, in splitLifetimes() argument
2891 for (MachineBasicBlock::iterator BBI = KernelBB->instr_begin(), in splitLifetimes()
2892 BBF = KernelBB->getFirstNonPHI(); in splitLifetimes()
2900 if (I->isPHI() && I->getParent() == KernelBB) { in splitLifetimes()
2902 unsigned LCDef = getLoopPhiReg(*BBI, KernelBB); in splitLifetimes()
2906 if (!MI || MI->getParent() != KernelBB || MI->isPHI()) in splitLifetimes()
2912 KernelBB->instr_end())) in splitLifetimes()
2917 BuildMI(*KernelBB, MI, MI->getDebugLoc(), in splitLifetimes()
2954 MachineBasicBlock *KernelBB, in addBranches() argument
2960 MachineBasicBlock *LastPro = KernelBB; in addBranches()
2961 MachineBasicBlock *LastEpi = KernelBB; in addBranches()