summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCSubtarget.h
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2014-06-12 22:50:10 +0000
committerEric Christopher <echristo@gmail.com>2014-06-12 22:50:10 +0000
commitf8c031fccfe4307b138468750801834520e11b2b (patch)
treebebc209aff41028c9de5a289c5093dbfd199c586 /llvm/lib/Target/PowerPC/PPCSubtarget.h
parent428c40352e0b3c9f0b1ca61d773d2ad230d3df17 (diff)
downloadbcm5719-llvm-f8c031fccfe4307b138468750801834520e11b2b.tar.gz
bcm5719-llvm-f8c031fccfe4307b138468750801834520e11b2b.zip
Move PPCTargetLowering off of the TargetMachine and onto the subtarget.
llvm-svn: 210852
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCSubtarget.h')
-rw-r--r--llvm/lib/Target/PowerPC/PPCSubtarget.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCSubtarget.h b/llvm/lib/Target/PowerPC/PPCSubtarget.h
index 7724e05874c..91d1746a8d0 100644
--- a/llvm/lib/Target/PowerPC/PPCSubtarget.h
+++ b/llvm/lib/Target/PowerPC/PPCSubtarget.h
@@ -16,6 +16,7 @@
#include "PPCFrameLowering.h"
#include "PPCInstrInfo.h"
+#include "PPCISelLowering.h"
#include "PPCJITInfo.h"
#include "llvm/ADT/Triple.h"
#include "llvm/IR/DataLayout.h"
@@ -110,13 +111,14 @@ protected:
const DataLayout DL;
PPCInstrInfo InstrInfo;
PPCJITInfo JITInfo;
+ PPCTargetLowering TLInfo;
public:
/// This constructor initializes the data members to match that
/// of the specified triple.
///
PPCSubtarget(const std::string &TT, const std::string &CPU,
- const std::string &FS, bool is64Bit,
+ const std::string &FS, PPCTargetMachine &TM, bool is64Bit,
CodeGenOpt::Level OptLevel);
/// ParseSubtargetFeatures - Parses features string setting specified
@@ -144,6 +146,7 @@ public:
const DataLayout *getDataLayout() const { return &DL; }
const PPCInstrInfo *getInstrInfo() const { return &InstrInfo; }
PPCJITInfo *getJITInfo() { return &JITInfo; }
+ const PPCTargetLowering *getTargetLowering() const { return &TLInfo; }
/// initializeSubtargetDependencies - Initializes using a CPU and feature string
/// so that we can use initializer lists for subtarget initialization.
OpenPOWER on IntegriCloud