[llvm] r235877 - [mips] [IAS] Rename getATRegNum and setATReg to {g, s}etATRegIndex. NFC.
Toma Tabacu
toma.tabacu at imgtec.com
Mon Apr 27 06:12:59 PDT 2015
Author: tomatabacu
Date: Mon Apr 27 08:12:59 2015
New Revision: 235877
URL: http://llvm.org/viewvc/llvm-project?rev=235877&view=rev
Log:
[mips] [IAS] Rename getATRegNum and setATReg to {g,s}etATRegIndex. NFC.
Reviewers: dsanders
Reviewed By: dsanders
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D8480
Modified:
llvm/trunk/lib/Target/Mips/AsmParser/MipsAsmParser.cpp
Modified: llvm/trunk/lib/Target/Mips/AsmParser/MipsAsmParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/AsmParser/MipsAsmParser.cpp?rev=235877&r1=235876&r2=235877&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Mips/AsmParser/MipsAsmParser.cpp (original)
+++ llvm/trunk/lib/Target/Mips/AsmParser/MipsAsmParser.cpp Mon Apr 27 08:12:59 2015
@@ -47,14 +47,14 @@ public:
ATReg(1), Reorder(true), Macro(true), Features(Features_) {}
MipsAssemblerOptions(const MipsAssemblerOptions *Opts) {
- ATReg = Opts->getATRegNum();
+ ATReg = Opts->getATRegIndex();
Reorder = Opts->isReorder();
Macro = Opts->isMacro();
Features = Opts->getFeatures();
}
- unsigned getATRegNum() const { return ATReg; }
- bool setATReg(unsigned Reg) {
+ unsigned getATRegIndex() const { return ATReg; }
+ bool setATRegIndex(unsigned Reg) {
if (Reg > 31)
return false;
@@ -2205,7 +2205,7 @@ bool MipsAsmParser::MatchAndEmitInstruct
void MipsAsmParser::warnIfAssemblerTemporary(int RegIndex, SMLoc Loc) {
if ((RegIndex != 0) &&
- ((int)AssemblerOptions.back()->getATRegNum() == RegIndex)) {
+ ((int)AssemblerOptions.back()->getATRegIndex() == RegIndex)) {
if (RegIndex == 1)
Warning(Loc, "used $at without \".set noat\"");
else
@@ -2386,7 +2386,7 @@ int MipsAsmParser::matchMSA128CtrlRegist
}
unsigned MipsAsmParser::getATReg(SMLoc Loc) {
- unsigned ATIndex = AssemblerOptions.back()->getATRegNum();
+ unsigned ATIndex = AssemblerOptions.back()->getATRegIndex();
if (ATIndex == 0) {
reportParseError(Loc,
"pseudo-instruction requires $at, which is not available");
@@ -3300,7 +3300,7 @@ bool MipsAsmParser::parseSetNoAtDirectiv
// Line should look like: ".set noat".
// Set the $at register to $0.
- AssemblerOptions.back()->setATReg(0);
+ AssemblerOptions.back()->setATRegIndex(0);
Parser.Lex(); // Eat "noat".
@@ -3323,7 +3323,7 @@ bool MipsAsmParser::parseSetAtDirective(
if (getLexer().is(AsmToken::EndOfStatement)) {
// No register was specified, so we set $at to $1.
- AssemblerOptions.back()->setATReg(1);
+ AssemblerOptions.back()->setATRegIndex(1);
getTargetStreamer().emitDirectiveSetAt();
Parser.Lex(); // Consume the EndOfStatement.
@@ -3360,7 +3360,7 @@ bool MipsAsmParser::parseSetAtDirective(
}
// Check if $reg is a valid register. If it is, set $at to $reg.
- if (!AssemblerOptions.back()->setATReg(AtRegNo)) {
+ if (!AssemblerOptions.back()->setATRegIndex(AtRegNo)) {
reportParseError("invalid register");
return false;
}
More information about the llvm-commits
mailing list