diff options
author | Bob Wilson <bob.wilson@apple.com> | 2009-04-20 18:36:57 +0000 |
---|---|---|
committer | Bob Wilson <bob.wilson@apple.com> | 2009-04-20 18:36:57 +0000 |
commit | 998e125a87d49f28c714d8223a37746850401057 (patch) | |
tree | 7120598afe0e7a85c772af91d375d54c2664dfb9 /include/llvm/CodeGen/MachineFunction.h | |
parent | 91b477d2fae6853bdb3c018862629305c6773367 (diff) | |
download | external_llvm-998e125a87d49f28c714d8223a37746850401057.tar.gz external_llvm-998e125a87d49f28c714d8223a37746850401057.tar.bz2 external_llvm-998e125a87d49f28c714d8223a37746850401057.zip |
Move duplicated AddLiveIn function from X86 and ARM backends to be a method
in the MachineFunction class, renaming it to addLiveIn for consistency with
the same method in MachineBasicBlock. Thanks for Anton for suggesting this.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@69615 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/MachineFunction.h')
-rw-r--r-- | include/llvm/CodeGen/MachineFunction.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/MachineFunction.h b/include/llvm/CodeGen/MachineFunction.h index dc7fa8cb16..f427c72e33 100644 --- a/include/llvm/CodeGen/MachineFunction.h +++ b/include/llvm/CodeGen/MachineFunction.h @@ -33,6 +33,7 @@ class MachineFrameInfo; class MachineConstantPool; class MachineJumpTableInfo; class TargetMachine; +class TargetRegisterClass; template <> struct ilist_traits<MachineBasicBlock> @@ -238,6 +239,10 @@ public: typedef std::reverse_iterator<const_iterator> const_reverse_iterator; typedef std::reverse_iterator<iterator> reverse_iterator; + /// addLiveIn - Add the specified physical register as a live-in value and + /// create a corresponding virtual register for it. + unsigned addLiveIn(unsigned PReg, const TargetRegisterClass *RC); + //===--------------------------------------------------------------------===// // BasicBlock accessor functions. // |