Lines Matching refs:STI
125 bool isSI(const MCSubtargetInfo &STI) {
126 return STI.getFeatureBits()[AMDGPU::FeatureSouthernIslands];
129 bool isCI(const MCSubtargetInfo &STI) {
130 return STI.getFeatureBits()[AMDGPU::FeatureSeaIslands];
133 bool isVI(const MCSubtargetInfo &STI) {
134 return STI.getFeatureBits()[AMDGPU::FeatureVolcanicIslands];
137 unsigned getMCReg(unsigned Reg, const MCSubtargetInfo &STI) {
142 assert(!isSI(STI));
143 return isCI(STI) ? AMDGPU::FLAT_SCR_ci : AMDGPU::FLAT_SCR_vi;
146 assert(!isSI(STI));
147 return isCI(STI) ? AMDGPU::FLAT_SCR_LO_ci : AMDGPU::FLAT_SCR_LO_vi;
150 assert(!isSI(STI));
151 return isCI(STI) ? AMDGPU::FLAT_SCR_HI_ci : AMDGPU::FLAT_SCR_HI_vi;