diff options
author | Akira Hatanaka <ahatanaka@mips.com> | 2012-07-23 23:45:54 +0000 |
---|---|---|
committer | Akira Hatanaka <ahatanaka@mips.com> | 2012-07-23 23:45:54 +0000 |
commit | 3ee306cbc0a295409c464ffaad5ef694de8eb09a (patch) | |
tree | 0f0cb3e4eac9c89a2931eeb2bfc7e6c8a5615e1a /lib/Target/Mips/MipsInstrInfo.h | |
parent | 581a739226381450ea2271cc794618043b6aeb4a (diff) | |
download | external_llvm-3ee306cbc0a295409c464ffaad5ef694de8eb09a.zip external_llvm-3ee306cbc0a295409c464ffaad5ef694de8eb09a.tar.gz external_llvm-3ee306cbc0a295409c464ffaad5ef694de8eb09a.tar.bz2 |
Add basic ability to setup call frame, and make procedure calls.
Hello world will compile and execute with this patch.
Patch by Reed Kotler.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160651 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips/MipsInstrInfo.h')
-rw-r--r-- | lib/Target/Mips/MipsInstrInfo.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Target/Mips/MipsInstrInfo.h b/lib/Target/Mips/MipsInstrInfo.h index b4721a7..358f817 100644 --- a/lib/Target/Mips/MipsInstrInfo.h +++ b/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, |