diff options
author | Evan Cheng <evan.cheng@apple.com> | 2010-04-28 23:08:54 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2010-04-28 23:08:54 +0000 |
commit | 2ad0fcf794924f618a7240741cc14a39be99d0f2 (patch) | |
tree | 9f91b7f71e5c3f8e3872306ac0a0f3c5047b9422 /include/llvm/CodeGen/MachineRegisterInfo.h | |
parent | c1c4595d1f5ea83ea45e448544a64263f62bc17f (diff) | |
download | external_llvm-2ad0fcf794924f618a7240741cc14a39be99d0f2.zip external_llvm-2ad0fcf794924f618a7240741cc14a39be99d0f2.tar.gz external_llvm-2ad0fcf794924f618a7240741cc14a39be99d0f2.tar.bz2 |
Replace r102368 with code that's less fragile. This creates DBG_VALUE instructions for function arguments early and insert them after instruction selection is done.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102554 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/MachineRegisterInfo.h')
-rw-r--r-- | include/llvm/CodeGen/MachineRegisterInfo.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/MachineRegisterInfo.h b/include/llvm/CodeGen/MachineRegisterInfo.h index d312aae..b377dec 100644 --- a/include/llvm/CodeGen/MachineRegisterInfo.h +++ b/include/llvm/CodeGen/MachineRegisterInfo.h @@ -261,6 +261,10 @@ public: bool isLiveIn(unsigned Reg) const; bool isLiveOut(unsigned Reg) const; + /// getLiveInPhysReg - If VReg is a live-in virtual register, return the + /// corresponding live-in physical register. + unsigned getLiveInPhysReg(unsigned VReg) const; + /// EmitLiveInCopies - Emit copies to initialize livein virtual registers /// into the given entry block. void EmitLiveInCopies(MachineBasicBlock *EntryMBB, |