diff options
author | Eric Christopher <echristo@gmail.com> | 2014-06-12 20:54:11 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2014-06-12 20:54:11 +0000 |
commit | 054a74452c0e260ac651c34e230152618ca57f94 (patch) | |
tree | 59f88ee9b164b554e33dd97c772e32185b98242c /lib/Target/PowerPC/PPCSubtarget.h | |
parent | 4cea00282fe0a94b9f7d057fe084f4a6a84ca265 (diff) | |
download | llvm-054a74452c0e260ac651c34e230152618ca57f94.tar.gz llvm-054a74452c0e260ac651c34e230152618ca57f94.tar.bz2 llvm-054a74452c0e260ac651c34e230152618ca57f94.tar.xz |
Move PPCFrameLowering into PPCSubtarget from PPCTargetMachine. Use
the initializeSubtargetDependencies code to obtain an initialized
subtarget and migrate a couple of subtarget using functions to the
.cpp file to avoid circular includes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210822 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCSubtarget.h')
-rw-r--r-- | lib/Target/PowerPC/PPCSubtarget.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/Target/PowerPC/PPCSubtarget.h b/lib/Target/PowerPC/PPCSubtarget.h index ee43fd5f80..0e1d283f38 100644 --- a/lib/Target/PowerPC/PPCSubtarget.h +++ b/lib/Target/PowerPC/PPCSubtarget.h @@ -14,6 +14,7 @@ #ifndef POWERPCSUBTARGET_H #define POWERPCSUBTARGET_H +#include "PPCFrameLowering.h" #include "llvm/ADT/Triple.h" #include "llvm/MC/MCInstrItineraries.h" #include "llvm/Target/TargetSubtargetInfo.h" @@ -102,6 +103,7 @@ protected: /// OptLevel - What default optimization level we're emitting code for. CodeGenOpt::Level OptLevel; + PPCFrameLowering FrameLowering; public: /// This constructor initializes the data members to match that /// of the specified triple. @@ -131,6 +133,12 @@ public: /// selection. const InstrItineraryData &getInstrItineraryData() const { return InstrItins; } + const PPCFrameLowering *getFrameLowering() const { return &FrameLowering; } + + /// initializeSubtargetDependencies - Initializes using a CPU and feature string + /// so that we can use initializer lists for subtarget initialization. + PPCSubtarget &initializeSubtargetDependencies(StringRef CPU, StringRef FS); + /// \brief Reset the features for the PowerPC target. void resetSubtargetFeatures(const MachineFunction *MF) override; private: |