summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2010-05-24 21:33:37 +0000
committerEvan Cheng <evan.cheng@apple.com>2010-05-24 21:33:37 +0000
commit3946043a80a043b3cf43b34bf068feaadc46485b (patch)
tree221c20a608f7c7306aa8cfd26855c9d98b1b7d0f /include
parente350690e3b0b33255ad9b8f152da4dff43014f9b (diff)
downloadllvm-3946043a80a043b3cf43b34bf068feaadc46485b.tar.gz
llvm-3946043a80a043b3cf43b34bf068feaadc46485b.tar.bz2
llvm-3946043a80a043b3cf43b34bf068feaadc46485b.tar.xz
Avoid adding duplicate function live-in's.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104560 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/CodeGen/MachineRegisterInfo.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/MachineRegisterInfo.h b/include/llvm/CodeGen/MachineRegisterInfo.h
index dede05f85c..fa14fdc3f1 100644
--- a/include/llvm/CodeGen/MachineRegisterInfo.h
+++ b/include/llvm/CodeGen/MachineRegisterInfo.h
@@ -293,6 +293,10 @@ public:
/// corresponding live-in physical register.
unsigned getLiveInPhysReg(unsigned VReg) const;
+ /// getLiveInVirtReg - If PReg is a live-in physical register, return the
+ /// corresponding live-in physical register.
+ unsigned getLiveInVirtReg(unsigned PReg) const;
+
/// EmitLiveInCopies - Emit copies to initialize livein virtual registers
/// into the given entry block.
void EmitLiveInCopies(MachineBasicBlock *EntryMBB,