mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-05 12:31:33 +00:00
rename LowerToMCInst -> LowerARMMachineInstrToMCInst.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119071 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1612a619f1
commit
30e2cc254b
@ -54,7 +54,8 @@ FunctionPass *createThumb2SizeReductionPass();
|
|||||||
|
|
||||||
extern Target TheARMTarget, TheThumbTarget;
|
extern Target TheARMTarget, TheThumbTarget;
|
||||||
|
|
||||||
void LowerToMCInst(const MachineInstr *MI, MCInst &OutMI, AsmPrinter &AP);
|
void LowerARMMachineInstrToMCInst(const MachineInstr *MI, MCInst &OutMI,
|
||||||
|
AsmPrinter &AP);
|
||||||
|
|
||||||
} // end namespace llvm;
|
} // end namespace llvm;
|
||||||
|
|
||||||
|
@ -929,7 +929,7 @@ void ARMAsmPrinter::EmitInstruction(const MachineInstr *MI) {
|
|||||||
case ARM::t2BR_JT: {
|
case ARM::t2BR_JT: {
|
||||||
// Lower and emit the instruction itself, then the jump table following it.
|
// Lower and emit the instruction itself, then the jump table following it.
|
||||||
MCInst TmpInst;
|
MCInst TmpInst;
|
||||||
LowerToMCInst(MI, TmpInst, *this);
|
LowerARMMachineInstrToMCInst(MI, TmpInst, *this);
|
||||||
OutStreamer.EmitInstruction(TmpInst);
|
OutStreamer.EmitInstruction(TmpInst);
|
||||||
EmitJump2Table(MI);
|
EmitJump2Table(MI);
|
||||||
return;
|
return;
|
||||||
@ -940,7 +940,7 @@ void ARMAsmPrinter::EmitInstruction(const MachineInstr *MI) {
|
|||||||
case ARM::BR_JTadd: {
|
case ARM::BR_JTadd: {
|
||||||
// Lower and emit the instruction itself, then the jump table following it.
|
// Lower and emit the instruction itself, then the jump table following it.
|
||||||
MCInst TmpInst;
|
MCInst TmpInst;
|
||||||
LowerToMCInst(MI, TmpInst, *this);
|
LowerARMMachineInstrToMCInst(MI, TmpInst, *this);
|
||||||
OutStreamer.EmitInstruction(TmpInst);
|
OutStreamer.EmitInstruction(TmpInst);
|
||||||
EmitJumpTable(MI);
|
EmitJumpTable(MI);
|
||||||
return;
|
return;
|
||||||
@ -1251,7 +1251,7 @@ void ARMAsmPrinter::EmitInstruction(const MachineInstr *MI) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
MCInst TmpInst;
|
MCInst TmpInst;
|
||||||
LowerToMCInst(MI, TmpInst, *this);
|
LowerARMMachineInstrToMCInst(MI, TmpInst, *this);
|
||||||
OutStreamer.EmitInstruction(TmpInst);
|
OutStreamer.EmitInstruction(TmpInst);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -54,7 +54,8 @@ static MCOperand GetSymbolRef(const MachineOperand &MO, const MCSymbol *Symbol,
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void llvm::LowerToMCInst(const MachineInstr *MI, MCInst &OutMI, AsmPrinter &AP){
|
void llvm::LowerARMMachineInstrToMCInst(const MachineInstr *MI, MCInst &OutMI,
|
||||||
|
AsmPrinter &AP){
|
||||||
OutMI.setOpcode(MI->getOpcode());
|
OutMI.setOpcode(MI->getOpcode());
|
||||||
|
|
||||||
for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i) {
|
for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i) {
|
||||||
|
Loading…
Reference in New Issue
Block a user