summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Mips/MipsInstrInfo.h
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanaka@mips.com>2012-07-23 23:45:54 +0000
committerAkira Hatanaka <ahatanaka@mips.com>2012-07-23 23:45:54 +0000
commit26e9ecb7a320099dcf80ab13b3dfc51c81bc5f4b (patch)
tree8adfcdc8fdb95207d0453c4c963dede23e4f2a64 /llvm/lib/Target/Mips/MipsInstrInfo.h
parent47f622d414a44efb4d39e88611a05696167ea34b (diff)
downloadbcm5719-llvm-26e9ecb7a320099dcf80ab13b3dfc51c81bc5f4b.tar.gz
bcm5719-llvm-26e9ecb7a320099dcf80ab13b3dfc51c81bc5f4b.zip
Add basic ability to setup call frame, and make procedure calls.
Hello world will compile and execute with this patch. Patch by Reed Kotler. llvm-svn: 160651
Diffstat (limited to 'llvm/lib/Target/Mips/MipsInstrInfo.h')
-rw-r--r--llvm/lib/Target/Mips/MipsInstrInfo.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/Target/Mips/MipsInstrInfo.h b/llvm/lib/Target/Mips/MipsInstrInfo.h
index b4721a7b39a..358f8173a04 100644
--- a/llvm/lib/Target/Mips/MipsInstrInfo.h
+++ b/llvm/lib/Target/Mips/MipsInstrInfo.h
@@ -27,7 +27,7 @@ namespace llvm {
class MipsInstrInfo : public MipsGenInstrInfo {
MipsTargetMachine &TM;
- bool IsN64;
+ bool IsN64; bool InMips16Mode;
const MipsRegisterInfo RI;
unsigned UncondBrOpc;
public:
@@ -65,6 +65,9 @@ public:
private:
void ExpandRetRA(MachineBasicBlock &MBB, MachineBasicBlock::iterator I,
unsigned Opc) const;
+ void ExpandRetRA16(MachineBasicBlock &MBB, MachineBasicBlock::iterator I,
+ unsigned Opc) const;
+
void BuildCondBr(MachineBasicBlock &MBB, MachineBasicBlock *TBB, DebugLoc DL,
const SmallVectorImpl<MachineOperand>& Cond) const;
void ExpandExtractElementF64(MachineBasicBlock &MBB,
OpenPOWER on IntegriCloud