Lines Matching refs:TRI

45 Printable PrintReg(unsigned Reg, const TargetRegisterInfo *TRI,  in PrintReg()  argument
47 return Printable([Reg, TRI, SubIdx](raw_ostream &OS) { in PrintReg()
54 else if (TRI && Reg < TRI->getNumRegs()) in PrintReg()
55 OS << '%' << TRI->getName(Reg); in PrintReg()
59 if (TRI) in PrintReg()
60 OS << ':' << TRI->getSubRegIndexName(SubIdx); in PrintReg()
67 Printable PrintRegUnit(unsigned Unit, const TargetRegisterInfo *TRI) { in PrintRegUnit() argument
68 return Printable([Unit, TRI](raw_ostream &OS) { in PrintRegUnit()
70 if (!TRI) { in PrintRegUnit()
76 if (Unit >= TRI->getNumRegUnits()) { in PrintRegUnit()
82 MCRegUnitRootIterator Roots(Unit, TRI); in PrintRegUnit()
84 OS << TRI->getName(*Roots); in PrintRegUnit()
86 OS << '~' << TRI->getName(*Roots); in PrintRegUnit()
90 Printable PrintVRegOrUnit(unsigned Unit, const TargetRegisterInfo *TRI) { in PrintVRegOrUnit() argument
91 return Printable([Unit, TRI](raw_ostream &OS) { in PrintVRegOrUnit()
92 if (TRI && TRI->isVirtualRegister(Unit)) { in PrintVRegOrUnit()
95 OS << PrintRegUnit(Unit, TRI); in PrintVRegOrUnit()
187 const TargetRegisterInfo *TRI, in firstCommonClass() argument
191 for (unsigned I = 0, E = TRI->getNumRegClasses(); I < E; I += 32) in firstCommonClass()
194 TRI->getRegClass(I + countTrailingZeros(Common)); in firstCommonClass()
296 static bool shareSameRegisterFile(const TargetRegisterInfo &TRI, in shareSameRegisterFile() argument
308 return TRI.getCommonSuperRegClass(SrcRC, SrcSubReg, DefRC, DefSubReg, in shareSameRegisterFile()
321 return TRI.getMatchingSuperRegClass(SrcRC, DefRC, SrcSubReg) != nullptr; in shareSameRegisterFile()
324 return TRI.getCommonSubClass(DefRC, SrcRC) != nullptr; in shareSameRegisterFile()
394 const TargetRegisterInfo *TRI) { in dumpReg() argument
395 dbgs() << PrintReg(Reg, TRI, SubRegIndex) << "\n"; in dumpReg()