aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/Mips/MipsInstrInfo.cpp
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanak@gmail.com>2011-07-07 23:56:50 +0000
committerAkira Hatanaka <ahatanak@gmail.com>2011-07-07 23:56:50 +0000
commit794bf17cbe0bac301ef9e52fb4a0295bfdfe0cab (patch)
tree97053482629ce9b839e67d08288ac75ee6fecc4b /lib/Target/Mips/MipsInstrInfo.cpp
parentb2760f82b14c2981b2e52a411a82f321dcdf7000 (diff)
downloadexternal_llvm-794bf17cbe0bac301ef9e52fb4a0295bfdfe0cab.zip
external_llvm-794bf17cbe0bac301ef9e52fb4a0295bfdfe0cab.tar.gz
external_llvm-794bf17cbe0bac301ef9e52fb4a0295bfdfe0cab.tar.bz2
Lower MachineInstr to MC Inst and print to .s files.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134661 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips/MipsInstrInfo.cpp')
-rw-r--r--lib/Target/Mips/MipsInstrInfo.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Target/Mips/MipsInstrInfo.cpp b/lib/Target/Mips/MipsInstrInfo.cpp
index f2fe2dc..b0a341f 100644
--- a/lib/Target/Mips/MipsInstrInfo.cpp
+++ b/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;
}