diff options
author | Jim Laskey <jlaskey@mac.com> | 2005-09-01 21:38:21 +0000 |
---|---|---|
committer | Jim Laskey <jlaskey@mac.com> | 2005-09-01 21:38:21 +0000 |
commit | b1e1180ca0b32f37aa74d7ad703eeaf91e66c8fa (patch) | |
tree | a34f84ab3bb875ee64e139f707e7591a5d162eca /lib/Target/PowerPC/PPCTargetMachine.cpp | |
parent | b3302db18a779527a4b1cd7a2024543ade7e83c6 (diff) |
1. Use SubtargetFeatures in llc/lli.
2. Propagate feature "string" to all targets.
3. Implement use of SubtargetFeatures in PowerPCTargetSubtarget.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23192 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCTargetMachine.cpp')
-rw-r--r-- | lib/Target/PowerPC/PPCTargetMachine.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/Target/PowerPC/PPCTargetMachine.cpp b/lib/Target/PowerPC/PPCTargetMachine.cpp index 936629a5ab..8ff9d8bb0d 100644 --- a/lib/Target/PowerPC/PPCTargetMachine.cpp +++ b/lib/Target/PowerPC/PPCTargetMachine.cpp @@ -43,9 +43,10 @@ namespace { PowerPCTargetMachine::PowerPCTargetMachine(const std::string &name, IntrinsicLowering *IL, const Module &M, + const std::string &FS, const TargetData &TD, const PowerPCFrameInfo &TFI) -: TargetMachine(name, IL, TD), FrameInfo(TFI), Subtarget(M) { +: TargetMachine(name, IL, TD), FrameInfo(TFI), Subtarget(M, FS) { if (TargetDefault == PPCTarget) { if (Subtarget.isAIX()) PPCTarget = TargetAIX; if (Subtarget.isDarwin()) PPCTarget = TargetDarwin; @@ -154,8 +155,9 @@ void PowerPCJITInfo::addPassesToJITCompile(FunctionPassManager &PM) { /// PowerPCTargetMachine ctor - Create an ILP32 architecture model /// -PPC32TargetMachine::PPC32TargetMachine(const Module &M, IntrinsicLowering *IL) - : PowerPCTargetMachine(PPC32ID, IL, M, +PPC32TargetMachine::PPC32TargetMachine(const Module &M, IntrinsicLowering *IL, + const std::string &FS) + : PowerPCTargetMachine(PPC32ID, IL, M, FS, TargetData(PPC32ID,false,4,4,4,4,4,4,2,1,1), PowerPCFrameInfo(*this, false)), JITInfo(*this) {} |