diff options
author | Akira Hatanaka <ahatanaka@mips.com> | 2012-09-27 01:59:07 +0000 |
---|---|---|
committer | Akira Hatanaka <ahatanaka@mips.com> | 2012-09-27 01:59:07 +0000 |
commit | 42a352485bebe3fe382666bfc75ed17c4fea2124 (patch) | |
tree | 79094c788efcbf34f914b0c6f2d34a00182ed7b2 /llvm/lib/Target/Mips/MipsAsmPrinter.cpp | |
parent | de8231eada12167cc2122ba35ab9b6d8660cdc4c (diff) | |
download | bcm5719-llvm-42a352485bebe3fe382666bfc75ed17c4fea2124.tar.gz bcm5719-llvm-42a352485bebe3fe382666bfc75ed17c4fea2124.zip |
MIPS DSP: add code necessary for pseudo instruction lowering.
llvm-svn: 164747
Diffstat (limited to 'llvm/lib/Target/Mips/MipsAsmPrinter.cpp')
-rw-r--r-- | llvm/lib/Target/Mips/MipsAsmPrinter.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/llvm/lib/Target/Mips/MipsAsmPrinter.cpp b/llvm/lib/Target/Mips/MipsAsmPrinter.cpp index e780134033f..6ca41624d33 100644 --- a/llvm/lib/Target/Mips/MipsAsmPrinter.cpp +++ b/llvm/lib/Target/Mips/MipsAsmPrinter.cpp @@ -50,6 +50,13 @@ bool MipsAsmPrinter::runOnMachineFunction(MachineFunction &MF) { return true; } +bool MipsAsmPrinter::lowerOperand(const MachineOperand &MO, MCOperand &MCOp) { + MCOp = MCInstLowering.LowerOperand(MO); + return MCOp.isValid(); +} + +#include "MipsGenMCPseudoLowering.inc" + void MipsAsmPrinter::EmitInstruction(const MachineInstr *MI) { if (MI->isDebugValue()) { SmallString<128> Str; @@ -59,6 +66,10 @@ void MipsAsmPrinter::EmitInstruction(const MachineInstr *MI) { return; } + // Do any auto-generated pseudo lowerings. + if (emitPseudoExpansionLowering(OutStreamer, MI)) + return; + MachineBasicBlock::const_instr_iterator I = MI; MachineBasicBlock::const_instr_iterator E = MI->getParent()->instr_end(); |