diff options
author | Evan Cheng <evan.cheng@apple.com> | 2006-09-08 06:48:29 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2006-09-08 06:48:29 +0000 |
commit | 11b0a5dbd4324f5d99d76f4701ae2385b44d69d5 (patch) | |
tree | c69b28fb880d799462ab5b2f2e13d66ff1582035 /llvm/lib/Target/X86/X86TargetMachine.h | |
parent | 02a7d09b409e7f2832fbc6f253d04dc36d54f79e (diff) | |
download | bcm5719-llvm-11b0a5dbd4324f5d99d76f4701ae2385b44d69d5.tar.gz bcm5719-llvm-11b0a5dbd4324f5d99d76f4701ae2385b44d69d5.zip |
Committing X86-64 support.
llvm-svn: 30177
Diffstat (limited to 'llvm/lib/Target/X86/X86TargetMachine.h')
-rw-r--r-- | llvm/lib/Target/X86/X86TargetMachine.h | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/X86TargetMachine.h b/llvm/lib/Target/X86/X86TargetMachine.h index 8278cf1b22a..05cb9484d63 100644 --- a/llvm/lib/Target/X86/X86TargetMachine.h +++ b/llvm/lib/Target/X86/X86TargetMachine.h @@ -37,7 +37,7 @@ protected: virtual const TargetAsmInfo *createTargetAsmInfo() const; public: - X86TargetMachine(const Module &M, const std::string &FS); + X86TargetMachine(const Module &M, const std::string &FS, bool is64Bit); virtual const X86InstrInfo *getInstrInfo() const { return &InstrInfo; } virtual const TargetFrameInfo *getFrameInfo() const { return &FrameInfo; } @@ -54,6 +54,7 @@ public: static unsigned getModuleMatchQuality(const Module &M); static unsigned getJITMatchQuality(); + // Set up the pass pipeline. virtual bool addInstSelector(FunctionPassManager &PM, bool Fast); virtual bool addPostRegAlloc(FunctionPassManager &PM, bool Fast); @@ -64,6 +65,27 @@ public: virtual bool addCodeEmitter(FunctionPassManager &PM, bool Fast, MachineCodeEmitter &MCE); }; + +/// X86_32TargetMachine - X86 32-bit target machine. +/// +class X86_32TargetMachine : public X86TargetMachine { +public: + X86_32TargetMachine(const Module &M, const std::string &FS); + + static unsigned getJITMatchQuality(); + static unsigned getModuleMatchQuality(const Module &M); +}; + +/// X86_64TargetMachine - X86 64-bit target machine. +/// +class X86_64TargetMachine : public X86TargetMachine { +public: + X86_64TargetMachine(const Module &M, const std::string &FS); + + static unsigned getJITMatchQuality(); + static unsigned getModuleMatchQuality(const Module &M); +}; + } // End llvm namespace #endif |