aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Target/TargetRegisterInfo.h
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2010-06-29 14:02:34 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2010-06-29 14:02:34 +0000
commitd31f972bd33de85071c716f69bf5c6d735f730f2 (patch)
tree043445afb1aebab394f490a791eb8f072a6f7377 /include/llvm/Target/TargetRegisterInfo.h
parent17c6e6d9cf4c9e56a6a28e4d0ae3699d376a8962 (diff)
downloadexternal_llvm-d31f972bd33de85071c716f69bf5c6d735f730f2.zip
external_llvm-d31f972bd33de85071c716f69bf5c6d735f730f2.tar.gz
external_llvm-d31f972bd33de85071c716f69bf5c6d735f730f2.tar.bz2
Add a VT argument to getMinimalPhysRegClass and replace the copy related uses
of getPhysicalRegisterRegClass with it. If we want to make a copy (or estimate its cost), it is better to use the smallest class as more efficient operations might be possible. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107140 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Target/TargetRegisterInfo.h')
-rw-r--r--include/llvm/Target/TargetRegisterInfo.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/Target/TargetRegisterInfo.h b/include/llvm/Target/TargetRegisterInfo.h
index 16a2be9..eb997cd 100644
--- a/include/llvm/Target/TargetRegisterInfo.h
+++ b/include/llvm/Target/TargetRegisterInfo.h
@@ -321,7 +321,8 @@ public:
/// getMinimalPhysRegClass - Returns the Register Class of a physical
/// register of the given type.
- const TargetRegisterClass * getMinimalPhysRegClass(unsigned Reg) const;
+ const TargetRegisterClass *
+ getMinimalPhysRegClass(unsigned Reg, EVT VT = MVT::Other) const;
/// getAllocatableSet - Returns a bitset indexed by register number
/// indicating if a register is allocatable or not. If a register class is