mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
[mips] Rename the LA/LI/DLI TableGen definitions and classes. NFC.
Summary: Use more reasonable names for these pseudo-instructions. As there's only one definition tied to any one of these classes, I named them with abbreviated versions of their respective class' name. Reviewers: dsanders Reviewed By: dsanders Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D7831 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231240 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1584,10 +1584,10 @@ bool MipsAsmParser::processInstruction(MCInst &Inst, SMLoc IDLoc,
|
||||
bool MipsAsmParser::needsExpansion(MCInst &Inst) {
|
||||
|
||||
switch (Inst.getOpcode()) {
|
||||
case Mips::LoadImm32Reg:
|
||||
case Mips::LoadAddr32Imm:
|
||||
case Mips::LoadAddr32Reg:
|
||||
case Mips::LoadImm64Reg:
|
||||
case Mips::LoadImm32:
|
||||
case Mips::LoadImm64:
|
||||
case Mips::LoadAddrImm32:
|
||||
case Mips::LoadAddrReg32:
|
||||
case Mips::B_MM_Pseudo:
|
||||
case Mips::LWM_MM:
|
||||
case Mips::SWM_MM:
|
||||
@@ -1603,17 +1603,17 @@ bool MipsAsmParser::expandInstruction(MCInst &Inst, SMLoc IDLoc,
|
||||
SmallVectorImpl<MCInst> &Instructions) {
|
||||
switch (Inst.getOpcode()) {
|
||||
default: llvm_unreachable("unimplemented expansion");
|
||||
case Mips::LoadImm32Reg:
|
||||
case Mips::LoadImm32:
|
||||
return expandLoadImm(Inst, IDLoc, Instructions);
|
||||
case Mips::LoadImm64Reg:
|
||||
case Mips::LoadImm64:
|
||||
if (!isGP64bit()) {
|
||||
Error(IDLoc, "instruction requires a 64-bit architecture");
|
||||
return true;
|
||||
}
|
||||
return expandLoadImm(Inst, IDLoc, Instructions);
|
||||
case Mips::LoadAddr32Imm:
|
||||
case Mips::LoadAddrImm32:
|
||||
return expandLoadAddressImm(Inst, IDLoc, Instructions);
|
||||
case Mips::LoadAddr32Reg:
|
||||
case Mips::LoadAddrReg32:
|
||||
return expandLoadAddressReg(Inst, IDLoc, Instructions);
|
||||
case Mips::B_MM_Pseudo:
|
||||
return expandUncondBranchMMPseudo(Inst, IDLoc, Instructions);
|
||||
|
Reference in New Issue
Block a user