Lines Matching refs:r
185 static constexpr ArmManagedRegister FromCoreRegister(Register r) { in FromCoreRegister() argument
186 CHECK_NE(r, kNoRegister); in FromCoreRegister()
187 return FromRegId(r); in FromCoreRegister()
190 static constexpr ArmManagedRegister FromSRegister(SRegister r) { in FromSRegister() argument
191 CHECK_NE(r, kNoSRegister); in FromSRegister()
192 return FromRegId(r + kNumberOfCoreRegIds); in FromSRegister()
195 static constexpr ArmManagedRegister FromDRegister(DRegister r) { in FromDRegister() argument
196 CHECK_NE(r, kNoDRegister); in FromDRegister()
197 return FromRegId(r + (kNumberOfCoreRegIds + kNumberOfSRegIds)); in FromDRegister()
200 static constexpr ArmManagedRegister FromRegisterPair(RegisterPair r) { in FromRegisterPair() argument
201 CHECK_NE(r, kNoRegisterPair); in FromRegisterPair()
202 return FromRegId(r + (kNumberOfCoreRegIds + in FromRegisterPair()
211 const int r = r_low / 2; in FromCoreRegisterPair() local
212 CHECK_LT(r, kNumberOfPairRegIds); in FromCoreRegisterPair()
213 return FromRegisterPair(static_cast<RegisterPair>(r)); in FromCoreRegisterPair()
223 const int r = r_low / 2; in FromSRegisterPair() local
224 CHECK_LT(r, kNumberOfOverlappingDRegIds); in FromSRegisterPair()
225 return FromDRegister(static_cast<DRegister>(r)); in FromSRegisterPair()
241 int r = id_; in AllocId() local
243 r -= kNumberOfOverlappingDRegIds; in AllocId()
245 CHECK_LT(r, kNumberOfAllocIds); in AllocId()
246 return r; in AllocId()