diff options
author | Jim Grosbach <grosbach@apple.com> | 2010-08-24 19:05:43 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2010-08-24 19:05:43 +0000 |
commit | a273442891ae20fd8192526132e3819ea9e5eda9 (patch) | |
tree | 0e28d05f881cbe240efb9fba0d59f0072c149869 /include/llvm/Target | |
parent | 05ea54e8869a81b8dd846397175f218f97968907 (diff) | |
download | external_llvm-a273442891ae20fd8192526132e3819ea9e5eda9.zip external_llvm-a273442891ae20fd8192526132e3819ea9e5eda9.tar.gz external_llvm-a273442891ae20fd8192526132e3819ea9e5eda9.tar.bz2 |
Move enabling the local stack allocation pass into the target where it belongs.
For now it's still a command line option, but the interface to the generic
code doesn't need to know that.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111942 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Target')
-rw-r--r-- | include/llvm/Target/TargetRegisterInfo.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/llvm/Target/TargetRegisterInfo.h b/include/llvm/Target/TargetRegisterInfo.h index 43b6bad..4924998 100644 --- a/include/llvm/Target/TargetRegisterInfo.h +++ b/include/llvm/Target/TargetRegisterInfo.h @@ -593,6 +593,13 @@ public: return false; } + /// requiresVirtualBaseRegisters - Returns true if the target wants the + /// LocalStackAllocation pass to be run and virtual base registers + /// used for more efficient stack access. + virtual bool requiresVirtualBaseRegisters(const MachineFunction &MF) const { + return false; + } + /// hasFP - Return true if the specified function should have a dedicated /// frame pointer register. For most targets this is true only if the function /// has variable sized allocas or if frame pointer elimination is disabled. |