@@ -6027,28 +6027,21 @@ AMDGPUAsmParser::parseNamedBit(StringRef Name, OperandVector &Operands,
6027
6027
6028
6028
unsigned AMDGPUAsmParser::getCPolKind (StringRef Id, StringRef Mnemo,
6029
6029
bool &Disabling) const {
6030
- Disabling = Id.startswith (" no" );
6030
+ Disabling = Id.consume_front (" no" );
6031
6031
6032
6032
if (isGFX940 () && !Mnemo.startswith (" s_" )) {
6033
6033
return StringSwitch<unsigned >(Id)
6034
6034
.Case (" nt" , AMDGPU::CPol::NT)
6035
- .Case (" nont" , AMDGPU::CPol::NT)
6036
6035
.Case (" sc0" , AMDGPU::CPol::SC0)
6037
- .Case (" nosc0" , AMDGPU::CPol::SC0)
6038
6036
.Case (" sc1" , AMDGPU::CPol::SC1)
6039
- .Case (" nosc1" , AMDGPU::CPol::SC1)
6040
6037
.Default (0 );
6041
6038
}
6042
6039
6043
6040
return StringSwitch<unsigned >(Id)
6044
6041
.Case (" dlc" , AMDGPU::CPol::DLC)
6045
- .Case (" nodlc" , AMDGPU::CPol::DLC)
6046
6042
.Case (" glc" , AMDGPU::CPol::GLC)
6047
- .Case (" noglc" , AMDGPU::CPol::GLC)
6048
6043
.Case (" scc" , AMDGPU::CPol::SCC)
6049
- .Case (" noscc" , AMDGPU::CPol::SCC)
6050
6044
.Case (" slc" , AMDGPU::CPol::SLC)
6051
- .Case (" noslc" , AMDGPU::CPol::SLC)
6052
6045
.Default (0 );
6053
6046
}
6054
6047
0 commit comments