• Home
  • Raw
  • Download

Lines Matching refs:Reg

66     bool hasRAWHazard(unsigned Reg, MachineInstr *MI) const;
90 unsigned Reg = MI->getOperand(1).getReg(); in getAccDefMI() local
91 if (TargetRegisterInfo::isPhysicalRegister(Reg)) in getAccDefMI()
95 MachineInstr *DefMI = MRI->getVRegDef(Reg); in getAccDefMI()
100 Reg = DefMI->getOperand(1).getReg(); in getAccDefMI()
101 if (TargetRegisterInfo::isVirtualRegister(Reg)) { in getAccDefMI()
102 DefMI = MRI->getVRegDef(Reg); in getAccDefMI()
106 Reg = DefMI->getOperand(2).getReg(); in getAccDefMI()
107 if (TargetRegisterInfo::isVirtualRegister(Reg)) { in getAccDefMI()
108 DefMI = MRI->getVRegDef(Reg); in getAccDefMI()
118 unsigned Reg = MI->getOperand(0).getReg(); in getDefReg() local
119 if (TargetRegisterInfo::isPhysicalRegister(Reg) || in getDefReg()
120 !MRI->hasOneNonDBGUse(Reg)) in getDefReg()
121 return Reg; in getDefReg()
124 MachineInstr *UseMI = &*MRI->use_instr_nodbg_begin(Reg); in getDefReg()
126 return Reg; in getDefReg()
129 Reg = UseMI->getOperand(0).getReg(); in getDefReg()
130 if (TargetRegisterInfo::isPhysicalRegister(Reg) || in getDefReg()
131 !MRI->hasOneNonDBGUse(Reg)) in getDefReg()
132 return Reg; in getDefReg()
133 UseMI = &*MRI->use_instr_nodbg_begin(Reg); in getDefReg()
135 return Reg; in getDefReg()
138 return Reg; in getDefReg()
144 unsigned Reg = MI->getOperand(1).getReg(); in hasLoopHazard() local
145 if (TargetRegisterInfo::isPhysicalRegister(Reg)) in hasLoopHazard()
149 MachineInstr *DefMI = MRI->getVRegDef(Reg); in hasLoopHazard()
166 Reg = DefMI->getOperand(1).getReg(); in hasLoopHazard()
167 if (TargetRegisterInfo::isVirtualRegister(Reg)) { in hasLoopHazard()
168 DefMI = MRI->getVRegDef(Reg); in hasLoopHazard()
172 Reg = DefMI->getOperand(2).getReg(); in hasLoopHazard()
173 if (TargetRegisterInfo::isVirtualRegister(Reg)) { in hasLoopHazard()
174 DefMI = MRI->getVRegDef(Reg); in hasLoopHazard()
185 bool MLxExpansion::hasRAWHazard(unsigned Reg, MachineInstr *MI) const { in hasRAWHazard() argument
195 return MI->readsRegister(Reg, TRI); in hasRAWHazard()