summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCSubtarget.h
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2014-06-12 20:54:11 +0000
committerEric Christopher <echristo@gmail.com>2014-06-12 20:54:11 +0000
commitd104c31fc0b62dca30debb8a4647aea44eb79ec9 (patch)
tree7bac44e44afbbb2395646e711893db5b9c5af8a8 /llvm/lib/Target/PowerPC/PPCSubtarget.h
parentb03127d8a0b7875ed158a49cfaf1b8e0bb99638b (diff)
downloadbcm5719-llvm-d104c31fc0b62dca30debb8a4647aea44eb79ec9.tar.gz
bcm5719-llvm-d104c31fc0b62dca30debb8a4647aea44eb79ec9.zip
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. llvm-svn: 210822
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCSubtarget.h')
-rw-r--r--llvm/lib/Target/PowerPC/PPCSubtarget.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCSubtarget.h b/llvm/lib/Target/PowerPC/PPCSubtarget.h
index ee43fd5f807..0e1d283f38b 100644
--- a/llvm/lib/Target/PowerPC/PPCSubtarget.h
+++ b/llvm/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:
OpenPOWER on IntegriCloud