summaryrefslogtreecommitdiff
path: root/lib/Target/Alpha/AlphaTargetMachine.h
diff options
context:
space:
mode:
authorAndrew Lenharth <andrewl@lenharth.org>2005-07-22 20:52:16 +0000
committerAndrew Lenharth <andrewl@lenharth.org>2005-07-22 20:52:16 +0000
commit0934ae02af2e4d295951cea7e4567b065e183451 (patch)
tree40feeb03f423fe8947cb28fc6026e2df4e3279e0 /lib/Target/Alpha/AlphaTargetMachine.h
parentf3f951af3f6b83c7c28c58d5af68ba83f07d1959 (diff)
downloadllvm-0934ae02af2e4d295951cea7e4567b065e183451.tar.gz
llvm-0934ae02af2e4d295951cea7e4567b065e183451.tar.bz2
llvm-0934ae02af2e4d295951cea7e4567b065e183451.tar.xz
Alpha JIT (beta)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22500 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Alpha/AlphaTargetMachine.h')
-rw-r--r--lib/Target/Alpha/AlphaTargetMachine.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/Target/Alpha/AlphaTargetMachine.h b/lib/Target/Alpha/AlphaTargetMachine.h
index 9ff9ecdab6..b7f824e20e 100644
--- a/lib/Target/Alpha/AlphaTargetMachine.h
+++ b/lib/Target/Alpha/AlphaTargetMachine.h
@@ -18,6 +18,7 @@
#include "llvm/Target/TargetFrameInfo.h"
#include "llvm/PassManager.h"
#include "AlphaInstrInfo.h"
+#include "AlphaJITInfo.h"
namespace llvm {
@@ -27,6 +28,7 @@ class IntrinsicLowering;
class AlphaTargetMachine : public TargetMachine {
AlphaInstrInfo InstrInfo;
TargetFrameInfo FrameInfo;
+ AlphaJITInfo JITInfo;
public:
AlphaTargetMachine(const Module &M, IntrinsicLowering *IL);
@@ -36,6 +38,20 @@ public:
virtual const MRegisterInfo *getRegisterInfo() const {
return &InstrInfo.getRegisterInfo();
}
+ virtual TargetJITInfo* getJITInfo() {
+ return &JITInfo;
+ }
+
+ static unsigned getJITMatchQuality();
+
+ /// addPassesToEmitMachineCode - Add passes to the specified pass manager to
+ /// get machine code emitted. This uses a MachineCodeEmitter object to handle
+ /// actually outputting the machine code and resolving things like the address
+ /// of functions. This method should returns true if machine code emission is
+ /// not supported.
+ ///
+ virtual bool addPassesToEmitMachineCode(FunctionPassManager &PM,
+ MachineCodeEmitter &MCE);
virtual bool addPassesToEmitFile(PassManager &PM, std::ostream &Out,
CodeGenFileType FileType);