summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PowerPCTargetMachine.cpp
diff options
context:
space:
mode:
authorNate Begeman <natebegeman@mac.com>2005-08-04 07:12:09 +0000
committerNate Begeman <natebegeman@mac.com>2005-08-04 07:12:09 +0000
commit3bcfcd94740083d070fbd433187d9af0f08b128e (patch)
tree6717c63a394ef2003cf778f3732cf150041fe59f /llvm/lib/Target/PowerPC/PowerPCTargetMachine.cpp
parent6f286b760ff73f207d19273a8923865b9ae78cb5 (diff)
downloadbcm5719-llvm-3bcfcd94740083d070fbd433187d9af0f08b128e.tar.gz
bcm5719-llvm-3bcfcd94740083d070fbd433187d9af0f08b128e.zip
Add Subtarget support to PowerPC. Next up, using it.
llvm-svn: 22644
Diffstat (limited to 'llvm/lib/Target/PowerPC/PowerPCTargetMachine.cpp')
-rw-r--r--llvm/lib/Target/PowerPC/PowerPCTargetMachine.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Target/PowerPC/PowerPCTargetMachine.cpp b/llvm/lib/Target/PowerPC/PowerPCTargetMachine.cpp
index e156f5e744f..8393a3b3f49 100644
--- a/llvm/lib/Target/PowerPC/PowerPCTargetMachine.cpp
+++ b/llvm/lib/Target/PowerPC/PowerPCTargetMachine.cpp
@@ -59,10 +59,10 @@ namespace {
PowerPCTargetMachine::PowerPCTargetMachine(const std::string &name,
IntrinsicLowering *IL,
+ const Module &M,
const TargetData &TD,
const PowerPCFrameInfo &TFI)
- : TargetMachine(name, IL, TD), FrameInfo(TFI)
-{}
+: TargetMachine(name, IL, TD), FrameInfo(TFI), Subtarget(M) {}
unsigned PPC32TargetMachine::getJITMatchQuality() {
#if defined(__POWERPC__) || defined (__ppc__) || defined(_POWER)
@@ -177,14 +177,14 @@ void PowerPCJITInfo::addPassesToJITCompile(FunctionPassManager &PM) {
/// PowerPCTargetMachine ctor - Create an ILP32 architecture model
///
PPC32TargetMachine::PPC32TargetMachine(const Module &M, IntrinsicLowering *IL)
- : PowerPCTargetMachine(PPC32ID, IL,
+ : PowerPCTargetMachine(PPC32ID, IL, M,
TargetData(PPC32ID,false,4,4,4,4,4,4,2,1,1),
PowerPCFrameInfo(*this, false)), JITInfo(*this) {}
/// PPC64TargetMachine ctor - Create a LP64 architecture model
///
PPC64TargetMachine::PPC64TargetMachine(const Module &M, IntrinsicLowering *IL)
- : PowerPCTargetMachine(PPC64ID, IL,
+ : PowerPCTargetMachine(PPC64ID, IL, M,
TargetData(PPC64ID,false,8,4,4,4,4,4,2,1,1),
PowerPCFrameInfo(*this, true)) {}
OpenPOWER on IntegriCloud