Lines Matching refs:sgpr
302 sgpr,
346 constexpr RegType type() const { return rc <= RC::s16 ? RegType::sgpr : RegType::vgpr; }
358 if (type == RegType::sgpr) {
1807 constexpr RegisterDemand(const int16_t v, const int16_t s) noexcept : vgpr{v}, sgpr{s} {}
1809 int16_t sgpr = 0;
1813 return a.vgpr == b.vgpr && a.sgpr == b.sgpr;
1818 return vgpr > other.vgpr || sgpr > other.sgpr;
1823 if (t.type() == RegType::sgpr)
1824 return RegisterDemand(vgpr, sgpr + t.size());
1826 return RegisterDemand(vgpr + t.size(), sgpr);
1831 return RegisterDemand(vgpr + other.vgpr, sgpr + other.sgpr);
1836 return RegisterDemand(vgpr - other.vgpr, sgpr - other.sgpr);
1842 sgpr += other.sgpr;
1849 sgpr -= other.sgpr;
1855 if (t.type() == RegType::sgpr)
1856 sgpr += t.size();
1864 if (t.type() == RegType::sgpr)
1865 sgpr -= t.size();
1874 sgpr = std::max(sgpr, other.sgpr);
2130 /* register demand (sgpr/vgpr) per instruction per block */