mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-29 10:25:12 +00:00
[mips] Delete register class HWRegs64.
No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188016 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -96,9 +96,6 @@ class MipsAsmParser : public MCTargetAsmParser {
|
||||
MipsAsmParser::OperandMatchResultTy
|
||||
parseHWRegs(SmallVectorImpl<MCParsedAsmOperand*> &Operands);
|
||||
|
||||
MipsAsmParser::OperandMatchResultTy
|
||||
parseHW64Regs(SmallVectorImpl<MCParsedAsmOperand*> &Operands);
|
||||
|
||||
MipsAsmParser::OperandMatchResultTy
|
||||
parseCCRRegs(SmallVectorImpl<MCParsedAsmOperand*> &Operands);
|
||||
|
||||
@@ -221,7 +218,6 @@ public:
|
||||
Kind_GPR32,
|
||||
Kind_GPR64,
|
||||
Kind_HWRegs,
|
||||
Kind_HW64Regs,
|
||||
Kind_FGR32Regs,
|
||||
Kind_FGR64Regs,
|
||||
Kind_AFGR64Regs,
|
||||
@@ -388,11 +384,6 @@ public:
|
||||
return Reg.Kind == Kind_HWRegs;
|
||||
}
|
||||
|
||||
bool isHW64RegsAsm() const {
|
||||
assert((Kind == k_Register) && "Invalid access!");
|
||||
return Reg.Kind == Kind_HW64Regs;
|
||||
}
|
||||
|
||||
bool isCCRAsm() const {
|
||||
assert((Kind == k_Register) && "Invalid access!");
|
||||
return Reg.Kind == Kind_CCRRegs;
|
||||
@@ -1497,36 +1488,6 @@ MipsAsmParser::parseHWRegs(SmallVectorImpl<MCParsedAsmOperand*> &Operands) {
|
||||
return MatchOperand_Success;
|
||||
}
|
||||
|
||||
MipsAsmParser::OperandMatchResultTy
|
||||
MipsAsmParser::parseHW64Regs(
|
||||
SmallVectorImpl<MCParsedAsmOperand*> &Operands) {
|
||||
|
||||
if (!isMips64())
|
||||
return MatchOperand_NoMatch;
|
||||
// If the first token is not '$' we have an error.
|
||||
if (Parser.getTok().isNot(AsmToken::Dollar))
|
||||
return MatchOperand_NoMatch;
|
||||
SMLoc S = Parser.getTok().getLoc();
|
||||
Parser.Lex(); // Eat $
|
||||
|
||||
const AsmToken &Tok = Parser.getTok(); // Get the next token.
|
||||
if (Tok.isNot(AsmToken::Integer))
|
||||
return MatchOperand_NoMatch;
|
||||
|
||||
unsigned RegNum = Tok.getIntVal();
|
||||
// At the moment only hwreg29 is supported.
|
||||
if (RegNum != 29)
|
||||
return MatchOperand_ParseFail;
|
||||
|
||||
MipsOperand *op = MipsOperand::CreateReg(Mips::HWR29_64, S,
|
||||
Parser.getTok().getLoc());
|
||||
op->setRegKind(MipsOperand::Kind_HW64Regs);
|
||||
Operands.push_back(op);
|
||||
|
||||
Parser.Lex(); // Eat the register number.
|
||||
return MatchOperand_Success;
|
||||
}
|
||||
|
||||
MipsAsmParser::OperandMatchResultTy
|
||||
MipsAsmParser::parseCCRRegs(SmallVectorImpl<MCParsedAsmOperand*> &Operands) {
|
||||
// If the first token is not '$' we have an error.
|
||||
|
Reference in New Issue
Block a user