Home | History | Annotate | Download | only in CodeGen

Lines Matching refs:Unit

67 Printable PrintRegUnit(unsigned Unit, const TargetRegisterInfo *TRI) {
68 return Printable([Unit, TRI](raw_ostream &OS) {
71 OS << "Unit~" << Unit;
76 if (Unit >= TRI->getNumRegUnits()) {
77 OS << "BadUnit~" << Unit;
82 MCRegUnitRootIterator Roots(Unit, TRI);
83 assert(Roots.isValid() && "Unit has no roots.");
90 Printable PrintVRegOrUnit(unsigned Unit, const TargetRegisterInfo *TRI) {
91 return Printable([Unit, TRI](raw_ostream &OS) {
92 if (TRI && TRI->isVirtualRegister(Unit)) {
93 OS << "%vreg" << TargetRegisterInfo::virtReg2Index(Unit);
95 OS << PrintRegUnit(Unit, TRI);