Lines Matching refs:getParent
137 const MachineRegisterInfo &MRI = MI.getParent()->getParent()->getRegInfo(); in hasVectorOperands()
186 MachineRegisterInfo &MRI = MI.getParent()->getParent()->getRegInfo(); in tryChangeVGPRtoSGPRinCopy()
194 const auto *UseMI = MO.getParent(); in tryChangeVGPRtoSGPRinCopy()
197 if (MO.isDef() || UseMI->getParent() != MI.getParent() || in tryChangeVGPRtoSGPRinCopy()
285 BuildMI(*MI.getParent(), &MI, MI.getDebugLoc(), TII->get(AMDGPU::COPY), in foldVGPRCopyIntoRegSequence()
294 BuildMI(*MI.getParent(), &MI, MI.getDebugLoc(), TII->get(Opc), in foldVGPRCopyIntoRegSequence()
377 const MachineBasicBlock *MBBFrom = From->getParent(); in isReachable()
378 const MachineBasicBlock *MBBTo = To->getParent(); in isReachable()
448 const MachineBasicBlock *MBBFrom = From->getParent(); in hoistAndMergeSGPRInits()
449 const MachineBasicBlock *MBBTo = To->getParent(); in hoistAndMergeSGPRInits()
464 MDT.properlyDominates(Clobber->getParent(), MBBTo)); in hoistAndMergeSGPRInits()
478 << printMBBReference(*MI2->getParent()) << " " << *MI2); in hoistAndMergeSGPRInits()
488 << printMBBReference(*MI1->getParent()) << " " << *MI1); in hoistAndMergeSGPRInits()
495 auto *MBB = MDT.findNearestCommonDominator(MI1->getParent(), in hoistAndMergeSGPRInits()
496 MI2->getParent()); in hoistAndMergeSGPRInits()
506 << printMBBReference(*MI1->getParent()) << " " << *MI1 in hoistAndMergeSGPRInits()
508 << printMBBReference(*MI2->getParent()) << " to " in hoistAndMergeSGPRInits()
509 << printMBBReference(*I->getParent()) << " " << *MI2); in hoistAndMergeSGPRInits()
510 I->getParent()->splice(I, MI2->getParent(), MI2); in hoistAndMergeSGPRInits()
540 auto MBB = MI->getParent(); in hoistAndMergeSGPRInits()
553 TII->isSchedulingBoundary(*R, MBB, *MBB->getParent())) in hoistAndMergeSGPRInits()
612 I = BuildMI(*MI.getParent(), in runOnMachineFunction()
620 I = BuildMI(*MI.getParent(), std::next(I), I->getDebugLoc(), in runOnMachineFunction()
630 I = BuildMI(*MI.getParent(), in runOnMachineFunction()
673 assert((!NewBB || NewBB == I->getParent()) && in runOnMachineFunction()
693 assert((!NewBB || NewBB == I->getParent()) && in runOnMachineFunction()
713 assert((!NewBB || NewBB == I->getParent()) && in runOnMachineFunction()
771 BuildMI(*MI.getParent(), MI, MI.getDebugLoc(), in runOnMachineFunction()
802 const MachineInstr *UseMI = Use.getParent(); in processPHINode()
875 MachineFunction *MF = MI.getParent()->getParent(); in processPHINode()
902 MachineBasicBlock *MBB = MI.getParent(); in lowerSpecialCase()
922 MI.addImplicitDefUseOperands(*MBB->getParent()); in lowerSpecialCase()
1070 auto E = Inst->getParent()->end(); in lowerVGPR2SGPRCopies()
1126 MachineBasicBlock *MBB = MI->getParent(); in lowerVGPR2SGPRCopies()