diff options
author | Cameron Zwarich <zwarich@apple.com> | 2011-03-07 21:56:36 +0000 |
---|---|---|
committer | Cameron Zwarich <zwarich@apple.com> | 2011-03-07 21:56:36 +0000 |
commit | be2119e8e2bc7006cfd638a24367acbfda625d16 (patch) | |
tree | f6b612a7b38e222360664235d92655da3ab285d1 /include | |
parent | e390b3245f00627eb5c5bde5eb4ff6b6ff7c752d (diff) | |
download | llvm-be2119e8e2bc7006cfd638a24367acbfda625d16.tar.gz llvm-be2119e8e2bc7006cfd638a24367acbfda625d16.tar.bz2 llvm-be2119e8e2bc7006cfd638a24367acbfda625d16.tar.xz |
Move getRegPressureLimit() from TargetLoweringInfo to TargetRegisterInfo.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127175 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Target/TargetLowering.h | 8 | ||||
-rw-r--r-- | include/llvm/Target/TargetRegisterInfo.h | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/include/llvm/Target/TargetLowering.h b/include/llvm/Target/TargetLowering.h index 42c330f4f2..618ed54894 100644 --- a/include/llvm/Target/TargetLowering.h +++ b/include/llvm/Target/TargetLowering.h @@ -190,14 +190,6 @@ public: return RepRegClassCostForVT[VT.getSimpleVT().SimpleTy]; } - /// getRegPressureLimit - Return the register pressure "high water mark" for - /// the specific register class. The scheduler is in high register pressure - /// mode (for the specific register class) if it goes over the limit. - virtual unsigned getRegPressureLimit(const TargetRegisterClass *RC, - MachineFunction &MF) const { - return 0; - } - /// isTypeLegal - Return true if the target has native support for the /// specified value type. This means that it has a register that directly /// holds it without promotions or expansions. diff --git a/include/llvm/Target/TargetRegisterInfo.h b/include/llvm/Target/TargetRegisterInfo.h index af10748ef4..1c5d7c7118 100644 --- a/include/llvm/Target/TargetRegisterInfo.h +++ b/include/llvm/Target/TargetRegisterInfo.h @@ -595,6 +595,14 @@ public: return NULL; } + /// getRegPressureLimit - Return the register pressure "high water mark" for + /// the specific register class. The scheduler is in high register pressure + /// mode (for the specific register class) if it goes over the limit. + virtual unsigned getRegPressureLimit(const TargetRegisterClass *RC, + MachineFunction &MF) const { + return 0; + } + /// getAllocationOrder - Returns the register allocation order for a specified /// register class in the form of a pair of TargetRegisterClass iterators. virtual std::pair<TargetRegisterClass::iterator,TargetRegisterClass::iterator> |