aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/Mips/MipsMCInstLower.h
diff options
context:
space:
mode:
authorBruno Cardoso Lopes <bruno.cardoso@gmail.com>2011-11-08 22:26:47 +0000
committerBruno Cardoso Lopes <bruno.cardoso@gmail.com>2011-11-08 22:26:47 +0000
commitce1a538ab5b7ae7e0ed48d18c02571280fe105aa (patch)
treee233ade51d52239e04c931fdecdc6b866219d7b4 /lib/Target/Mips/MipsMCInstLower.h
parenta2ff3e2c3c0d8be862525c91f7b0e153480f4f5e (diff)
downloadexternal_llvm-ce1a538ab5b7ae7e0ed48d18c02571280fe105aa.tar.gz
external_llvm-ce1a538ab5b7ae7e0ed48d18c02571280fe105aa.tar.bz2
external_llvm-ce1a538ab5b7ae7e0ed48d18c02571280fe105aa.zip
Properly handle Mips MC relocations and lower cpload and cprestore macros to MCInsts.
Patch by Jack Carter. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144139 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips/MipsMCInstLower.h')
-rw-r--r--lib/Target/Mips/MipsMCInstLower.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Target/Mips/MipsMCInstLower.h b/lib/Target/Mips/MipsMCInstLower.h
index 223f23aed2..3a24da2ad7 100644
--- a/lib/Target/Mips/MipsMCInstLower.h
+++ b/lib/Target/Mips/MipsMCInstLower.h
@@ -9,6 +9,7 @@
#ifndef MIPSMCINSTLOWER_H
#define MIPSMCINSTLOWER_H
+#include "llvm/ADT/SmallVector.h"
#include "llvm/CodeGen/MachineOperand.h"
#include "llvm/Support/Compiler.h"
@@ -34,6 +35,8 @@ public:
MipsMCInstLower(Mangler *mang, const MachineFunction &MF,
MipsAsmPrinter &asmprinter);
void Lower(const MachineInstr *MI, MCInst &OutMI) const;
+ void LowerCPLOAD(const MachineInstr *MI, SmallVector<MCInst, 4>& MCInsts);
+ void LowerCPRESTORE(const MachineInstr *MI, MCInst &OutMI);
private:
MCOperand LowerSymbolOperand(const MachineOperand &MO,
MachineOperandType MOTy, unsigned Offset) const;