diff options
author | Akira Hatanaka <ahatanak@gmail.com> | 2011-07-07 23:56:50 +0000 |
---|---|---|
committer | Akira Hatanaka <ahatanak@gmail.com> | 2011-07-07 23:56:50 +0000 |
commit | 9c6028f98e9ba5358b3038a83656ff0919df9c9b (patch) | |
tree | 8e486dbb328e6adf20f1258528ed0c214a2bc2d8 /llvm/lib/Target/Mips/MipsInstrInfo.cpp | |
parent | 402bb388234c81dfdd4a16c03bf4314717f6fda5 (diff) | |
download | bcm5719-llvm-9c6028f98e9ba5358b3038a83656ff0919df9c9b.tar.gz bcm5719-llvm-9c6028f98e9ba5358b3038a83656ff0919df9c9b.zip |
Lower MachineInstr to MC Inst and print to .s files.
llvm-svn: 134661
Diffstat (limited to 'llvm/lib/Target/Mips/MipsInstrInfo.cpp')
-rw-r--r-- | llvm/lib/Target/Mips/MipsInstrInfo.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/Target/Mips/MipsInstrInfo.cpp b/llvm/lib/Target/Mips/MipsInstrInfo.cpp index f2fe2dcd8f8..b0a341fec11 100644 --- a/llvm/lib/Target/Mips/MipsInstrInfo.cpp +++ b/llvm/lib/Target/Mips/MipsInstrInfo.cpp @@ -14,6 +14,7 @@ #include "MipsInstrInfo.h" #include "MipsTargetMachine.h" #include "MipsMachineFunction.h" +#include "InstPrinter/MipsInstPrinter.h" #include "llvm/ADT/STLExtras.h" #include "llvm/CodeGen/MachineInstrBuilder.h" #include "llvm/CodeGen/MachineRegisterInfo.h" @@ -29,6 +30,11 @@ MipsInstrInfo::MipsInstrInfo(MipsTargetMachine &tm) : MipsGenInstrInfo(Mips::ADJCALLSTACKDOWN, Mips::ADJCALLSTACKUP), TM(tm), RI(*TM.getSubtargetImpl(), *this) {} + +const MipsRegisterInfo &MipsInstrInfo::getRegisterInfo() const { + return RI; +} + static bool isZeroImm(const MachineOperand &op) { return op.isImm() && op.getImm() == 0; } |