mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-07-23 16:30:00 +00:00
[mips] Rename emit and parse functions for the .cpload assembler directive. NFC.
Summary: It's better if we have a consistent name for .cpload-related functions. Reviewers: dsanders Reviewed By: dsanders Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D5437 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218768 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f7082f9bd7
commit
a2878ec715
@ -180,7 +180,7 @@ class MipsAsmParser : public MCTargetAsmParser {
|
|||||||
bool parseSetMips0Directive();
|
bool parseSetMips0Directive();
|
||||||
bool parseSetArchDirective();
|
bool parseSetArchDirective();
|
||||||
bool parseSetFeature(uint64_t Feature);
|
bool parseSetFeature(uint64_t Feature);
|
||||||
bool parseDirectiveCPLoad(SMLoc Loc);
|
bool parseDirectiveCpLoad(SMLoc Loc);
|
||||||
bool parseDirectiveCPSetup();
|
bool parseDirectiveCPSetup();
|
||||||
bool parseDirectiveNaN();
|
bool parseDirectiveNaN();
|
||||||
bool parseDirectiveSet();
|
bool parseDirectiveSet();
|
||||||
@ -2888,7 +2888,7 @@ bool MipsAsmParser::eatComma(StringRef ErrorStr) {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool MipsAsmParser::parseDirectiveCPLoad(SMLoc Loc) {
|
bool MipsAsmParser::parseDirectiveCpLoad(SMLoc Loc) {
|
||||||
if (AssemblerOptions.back()->isReorder())
|
if (AssemblerOptions.back()->isReorder())
|
||||||
Warning(Loc, ".cpload in reorder section");
|
Warning(Loc, ".cpload in reorder section");
|
||||||
|
|
||||||
@ -2907,7 +2907,7 @@ bool MipsAsmParser::parseDirectiveCPLoad(SMLoc Loc) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
getTargetStreamer().emitDirectiveCpload(RegOpnd.getGPR32Reg());
|
getTargetStreamer().emitDirectiveCpLoad(RegOpnd.getGPR32Reg());
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3298,7 +3298,7 @@ bool MipsAsmParser::ParseDirective(AsmToken DirectiveID) {
|
|||||||
StringRef IDVal = DirectiveID.getString();
|
StringRef IDVal = DirectiveID.getString();
|
||||||
|
|
||||||
if (IDVal == ".cpload")
|
if (IDVal == ".cpload")
|
||||||
return parseDirectiveCPLoad(DirectiveID.getLoc());
|
return parseDirectiveCpLoad(DirectiveID.getLoc());
|
||||||
if (IDVal == ".dword") {
|
if (IDVal == ".dword") {
|
||||||
parseDataDirective(8, DirectiveID.getLoc());
|
parseDataDirective(8, DirectiveID.getLoc());
|
||||||
return false;
|
return false;
|
||||||
|
@ -75,7 +75,7 @@ void MipsTargetStreamer::emitDirectiveSetPop() {}
|
|||||||
void MipsTargetStreamer::emitDirectiveSetPush() {}
|
void MipsTargetStreamer::emitDirectiveSetPush() {}
|
||||||
void MipsTargetStreamer::emitDirectiveSetDsp() { forbidModuleDirective(); }
|
void MipsTargetStreamer::emitDirectiveSetDsp() { forbidModuleDirective(); }
|
||||||
void MipsTargetStreamer::emitDirectiveSetNoDsp() { forbidModuleDirective(); }
|
void MipsTargetStreamer::emitDirectiveSetNoDsp() { forbidModuleDirective(); }
|
||||||
void MipsTargetStreamer::emitDirectiveCpload(unsigned RegNo) {}
|
void MipsTargetStreamer::emitDirectiveCpLoad(unsigned RegNo) {}
|
||||||
void MipsTargetStreamer::emitDirectiveCpsetup(unsigned RegNo, int RegOrOffset,
|
void MipsTargetStreamer::emitDirectiveCpsetup(unsigned RegNo, int RegOrOffset,
|
||||||
const MCSymbol &Sym, bool IsReg) {
|
const MCSymbol &Sym, bool IsReg) {
|
||||||
}
|
}
|
||||||
@ -278,7 +278,7 @@ void MipsTargetAsmStreamer::emitFMask(unsigned FPUBitmask,
|
|||||||
OS << "," << FPUTopSavedRegOff << '\n';
|
OS << "," << FPUTopSavedRegOff << '\n';
|
||||||
}
|
}
|
||||||
|
|
||||||
void MipsTargetAsmStreamer::emitDirectiveCpload(unsigned RegNo) {
|
void MipsTargetAsmStreamer::emitDirectiveCpLoad(unsigned RegNo) {
|
||||||
OS << "\t.cpload\t$"
|
OS << "\t.cpload\t$"
|
||||||
<< StringRef(MipsInstPrinter::getRegisterName(RegNo)).lower() << "\n";
|
<< StringRef(MipsInstPrinter::getRegisterName(RegNo)).lower() << "\n";
|
||||||
forbidModuleDirective();
|
forbidModuleDirective();
|
||||||
@ -597,7 +597,7 @@ void MipsTargetELFStreamer::emitFMask(unsigned FPUBitmask,
|
|||||||
FPROffset = FPUTopSavedRegOff;
|
FPROffset = FPUTopSavedRegOff;
|
||||||
}
|
}
|
||||||
|
|
||||||
void MipsTargetELFStreamer::emitDirectiveCpload(unsigned RegNo) {
|
void MipsTargetELFStreamer::emitDirectiveCpLoad(unsigned RegNo) {
|
||||||
// .cpload $reg
|
// .cpload $reg
|
||||||
// This directive expands to:
|
// This directive expands to:
|
||||||
// lui $gp, %hi(_gp_disp)
|
// lui $gp, %hi(_gp_disp)
|
||||||
|
@ -67,7 +67,7 @@ public:
|
|||||||
virtual void emitDirectiveSetPush();
|
virtual void emitDirectiveSetPush();
|
||||||
|
|
||||||
// PIC support
|
// PIC support
|
||||||
virtual void emitDirectiveCpload(unsigned RegNo);
|
virtual void emitDirectiveCpLoad(unsigned RegNo);
|
||||||
virtual void emitDirectiveCpsetup(unsigned RegNo, int RegOrOffset,
|
virtual void emitDirectiveCpsetup(unsigned RegNo, int RegOrOffset,
|
||||||
const MCSymbol &Sym, bool IsReg);
|
const MCSymbol &Sym, bool IsReg);
|
||||||
|
|
||||||
@ -171,7 +171,7 @@ public:
|
|||||||
void emitDirectiveSetPush() override;
|
void emitDirectiveSetPush() override;
|
||||||
|
|
||||||
// PIC support
|
// PIC support
|
||||||
void emitDirectiveCpload(unsigned RegNo) override;
|
void emitDirectiveCpLoad(unsigned RegNo) override;
|
||||||
void emitDirectiveCpsetup(unsigned RegNo, int RegOrOffset,
|
void emitDirectiveCpsetup(unsigned RegNo, int RegOrOffset,
|
||||||
const MCSymbol &Sym, bool IsReg) override;
|
const MCSymbol &Sym, bool IsReg) override;
|
||||||
|
|
||||||
@ -217,7 +217,7 @@ public:
|
|||||||
void emitFMask(unsigned FPUBitmask, int FPUTopSavedRegOff) override;
|
void emitFMask(unsigned FPUBitmask, int FPUTopSavedRegOff) override;
|
||||||
|
|
||||||
// PIC support
|
// PIC support
|
||||||
void emitDirectiveCpload(unsigned RegNo) override;
|
void emitDirectiveCpLoad(unsigned RegNo) override;
|
||||||
void emitDirectiveCpsetup(unsigned RegNo, int RegOrOffset,
|
void emitDirectiveCpsetup(unsigned RegNo, int RegOrOffset,
|
||||||
const MCSymbol &Sym, bool IsReg) override;
|
const MCSymbol &Sym, bool IsReg) override;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user