diff options
| author | Nate Begeman <natebegeman@mac.com> | 2005-08-04 07:12:09 +0000 |
|---|---|---|
| committer | Nate Begeman <natebegeman@mac.com> | 2005-08-04 07:12:09 +0000 |
| commit | 3bcfcd94740083d070fbd433187d9af0f08b128e (patch) | |
| tree | 6717c63a394ef2003cf778f3732cf150041fe59f /llvm/lib/Target/PowerPC/PowerPCTargetMachine.h | |
| parent | 6f286b760ff73f207d19273a8923865b9ae78cb5 (diff) | |
| download | bcm5719-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.h')
| -rw-r--r-- | llvm/lib/Target/PowerPC/PowerPCTargetMachine.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/llvm/lib/Target/PowerPC/PowerPCTargetMachine.h b/llvm/lib/Target/PowerPC/PowerPCTargetMachine.h index da8505104d2..4a92acf6c01 100644 --- a/llvm/lib/Target/PowerPC/PowerPCTargetMachine.h +++ b/llvm/lib/Target/PowerPC/PowerPCTargetMachine.h @@ -14,9 +14,11 @@ #ifndef POWERPC_TARGETMACHINE_H #define POWERPC_TARGETMACHINE_H -#include "PowerPCFrameInfo.h" #include "llvm/Target/TargetMachine.h" +#include "llvm/Target/TargetFrameInfo.h" #include "llvm/PassManager.h" +#include "PowerPCFrameInfo.h" +#include "PowerPCSubtarget.h" namespace llvm { @@ -24,13 +26,15 @@ class GlobalValue; class IntrinsicLowering; class PowerPCTargetMachine : public TargetMachine { - PowerPCFrameInfo FrameInfo; - + PowerPCFrameInfo FrameInfo; + PPCSubtarget Subtarget; protected: PowerPCTargetMachine(const std::string &name, IntrinsicLowering *IL, - const TargetData &TD, const PowerPCFrameInfo &TFI); + const Module &M, const TargetData &TD, + const PowerPCFrameInfo &TFI); public: virtual const TargetFrameInfo *getFrameInfo() const { return &FrameInfo; } + virtual const TargetSubtarget *getSubtargetImpl() const{ return &Subtarget; } virtual bool addPassesToEmitFile(PassManager &PM, std::ostream &Out, CodeGenFileType FileType); |

