aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/Mips/MipsInstrInfo.h
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-06-03 20:30:14 +0000
committerDan Gohman <gohman@apple.com>2009-06-03 20:30:14 +0000
commit9911405183f8596fe9d521467f83f6652a296cf4 (patch)
tree3629144f2929ce9eac2f881ec163e26fe1b17632 /lib/Target/Mips/MipsInstrInfo.h
parentc553462c2989bbcbd9a911f7a5d56e76883d3038 (diff)
downloadexternal_llvm-9911405183f8596fe9d521467f83f6652a296cf4.zip
external_llvm-9911405183f8596fe9d521467f83f6652a296cf4.tar.gz
external_llvm-9911405183f8596fe9d521467f83f6652a296cf4.tar.bz2
Convert Alpha and Mips to use a MachineFunctionInfo subclass to
carry GlobalBaseReg, and GlobalRetAddr too in Alpha's case. This eliminates the need for them to search through the MachineRegisterInfo livein list in order to identify these virtual registers. EmitLiveInCopies is now the only user of the virtual register portion of MachineRegisterInfo's livein data. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72802 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips/MipsInstrInfo.h')
-rw-r--r--lib/Target/Mips/MipsInstrInfo.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Target/Mips/MipsInstrInfo.h b/lib/Target/Mips/MipsInstrInfo.h
index 334244e..6655c67 100644
--- a/lib/Target/Mips/MipsInstrInfo.h
+++ b/lib/Target/Mips/MipsInstrInfo.h
@@ -216,6 +216,12 @@ public:
/// Insert nop instruction when hazard condition is found
virtual void insertNoop(MachineBasicBlock &MBB,
MachineBasicBlock::iterator MI) const;
+
+ /// getGlobalBaseReg - Return a virtual register initialized with the
+ /// the global base register value. Output instructions required to
+ /// initialize the register in the function entry block, if necessary.
+ ///
+ unsigned getGlobalBaseReg(MachineFunction *MF) const;
};
}