Lines Matching refs:Reg
40 MachineRegisterInfo::setRegClass(unsigned Reg, const TargetRegisterClass *RC) { in setRegClass() argument
42 VRegInfo[Reg].first = RC; in setRegClass()
46 MachineRegisterInfo::constrainRegClass(unsigned Reg, in constrainRegClass() argument
49 const TargetRegisterClass *OldRC = getRegClass(Reg); in constrainRegClass()
58 setRegClass(Reg, NewRC); in constrainRegClass()
63 MachineRegisterInfo::recomputeRegClass(unsigned Reg) { in recomputeRegClass() argument
65 const TargetRegisterClass *OldRC = getRegClass(Reg); in recomputeRegClass()
74 for (MachineOperand &MO : reg_nodbg_operands(Reg)) { in recomputeRegClass()
83 setRegClass(Reg, NewRC); in recomputeRegClass()
97 unsigned Reg = TargetRegisterInfo::index2VirtReg(getNumVirtRegs()); in createVirtualRegister() local
98 VRegInfo.grow(Reg); in createVirtualRegister()
99 VRegInfo[Reg].first = RegClass; in createVirtualRegister()
100 RegAllocHints.grow(Reg); in createVirtualRegister()
102 TheDelegate->MRI_NoteNewVirtualRegister(Reg); in createVirtualRegister()
103 return Reg; in createVirtualRegister()
110 unsigned Reg = TargetRegisterInfo::index2VirtReg(i); in clearVirtRegs() local
111 if (!VRegInfo[Reg].second) in clearVirtRegs()
113 verifyUseList(Reg); in clearVirtRegs()
122 void MachineRegisterInfo::verifyUseList(unsigned Reg) const { in verifyUseList()
125 for (MachineOperand &M : reg_operands(Reg)) { in verifyUseList()
129 errs() << PrintReg(Reg, getTargetRegisterInfo()) in verifyUseList()
138 errs() << PrintReg(Reg, getTargetRegisterInfo()) in verifyUseList()
144 errs() << PrintReg(Reg, getTargetRegisterInfo()) in verifyUseList()
149 if (MO->getReg() != Reg) { in verifyUseList()
150 errs() << PrintReg(Reg, getTargetRegisterInfo()) in verifyUseList()
181 MO->Contents.Reg.Prev = MO; in addRegOperandToUseList()
182 MO->Contents.Reg.Next = nullptr; in addRegOperandToUseList()
189 MachineOperand *Last = Head->Contents.Reg.Prev; in addRegOperandToUseList()
192 Head->Contents.Reg.Prev = MO; in addRegOperandToUseList()
193 MO->Contents.Reg.Prev = Last; in addRegOperandToUseList()
199 MO->Contents.Reg.Next = Head; in addRegOperandToUseList()
203 MO->Contents.Reg.Next = nullptr; in addRegOperandToUseList()
204 Last->Contents.Reg.Next = MO; in addRegOperandToUseList()
216 MachineOperand *Next = MO->Contents.Reg.Next; in removeRegOperandFromUseList()
217 MachineOperand *Prev = MO->Contents.Reg.Prev; in removeRegOperandFromUseList()
223 Prev->Contents.Reg.Next = Next; in removeRegOperandFromUseList()
225 (Next ? Next : Head)->Contents.Reg.Prev = Prev; in removeRegOperandFromUseList()
227 MO->Contents.Reg.Prev = nullptr; in removeRegOperandFromUseList()
228 MO->Contents.Reg.Next = nullptr; in removeRegOperandFromUseList()
258 MachineOperand *Prev = Src->Contents.Reg.Prev; in moveOperands()
259 MachineOperand *Next = Src->Contents.Reg.Next; in moveOperands()
268 Prev->Contents.Reg.Next = Dst; in moveOperands()
272 (Next ? Next : Head)->Contents.Reg.Prev = Dst; in moveOperands()
305 MachineInstr *MachineRegisterInfo::getVRegDef(unsigned Reg) const { in getVRegDef()
307 def_instr_iterator I = def_instr_begin(Reg); in getVRegDef()
316 MachineInstr *MachineRegisterInfo::getUniqueVRegDef(unsigned Reg) const { in getUniqueVRegDef()
317 if (def_empty(Reg)) return nullptr; in getUniqueVRegDef()
318 def_instr_iterator I = def_instr_begin(Reg); in getUniqueVRegDef()
335 void MachineRegisterInfo::clearKillFlags(unsigned Reg) const { in clearKillFlags()
336 for (MachineOperand &MO : use_operands(Reg)) in clearKillFlags()
340 bool MachineRegisterInfo::isLiveIn(unsigned Reg) const { in isLiveIn()
342 if (I->first == Reg || I->second == Reg) in isLiveIn()
397 LaneBitmask MachineRegisterInfo::getMaxLaneMaskForVReg(unsigned Reg) const { in getMaxLaneMaskForVReg()
399 assert(TargetRegisterInfo::isVirtualRegister(Reg)); in getMaxLaneMaskForVReg()
400 const TargetRegisterClass &TRC = *getRegClass(Reg); in getMaxLaneMaskForVReg()
405 void MachineRegisterInfo::dumpUses(unsigned Reg) const { in dumpUses()
406 for (MachineInstr &I : use_instructions(Reg)) in dumpUses()
433 void MachineRegisterInfo::markUsesInDebugValueAsUndef(unsigned Reg) const { in markUsesInDebugValueAsUndef()
436 for (use_instr_iterator I = use_instr_begin(Reg), E = use_instr_end(); in markUsesInDebugValueAsUndef()