Get rid of the old byte-at-a-time emission code used when the Sparc JIT was
[oota-llvm.git] / lib / Target / SparcV9 / SparcV9TargetMachine.h
1 //===-- SparcV9TargetMachine.h - Define TargetMachine for SparcV9 ---*- C++ -*-===//
2 // 
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file was developed by the LLVM research group and is distributed under
6 // the University of Illinois Open Source License. See LICENSE.TXT for details.
7 // 
8 //===----------------------------------------------------------------------===//
9 // 
10 // This file declares the top-level UltraSPARC target machine.
11 //
12 //===----------------------------------------------------------------------===//
13
14 #ifndef SPARC_TARGETMACHINE_H
15 #define SPARC_TARGETMACHINE_H
16
17 #include "llvm/Target/TargetFrameInfo.h"
18 #include "llvm/Target/TargetMachine.h"
19 #include "SparcV9InstrInfo.h"
20 #include "SparcV9Internals.h"
21 #include "SparcV9RegInfo.h"
22 #include "SparcV9FrameInfo.h"
23 #include "SparcV9JITInfo.h"
24
25 namespace llvm {
26   class PassManager;
27
28 class SparcV9TargetMachine : public TargetMachine {
29   SparcV9InstrInfo instrInfo;
30   SparcV9SchedInfo schedInfo;
31   SparcV9RegInfo   regInfo;
32   SparcV9FrameInfo frameInfo;
33   SparcV9JITInfo   jitInfo;
34 public:
35   SparcV9TargetMachine(IntrinsicLowering *IL);
36   
37   virtual const TargetInstrInfo  &getInstrInfo() const { return instrInfo; }
38   virtual const TargetSchedInfo  &getSchedInfo() const { return schedInfo; }
39   virtual const TargetRegInfo    &getRegInfo()   const { return regInfo; }
40   virtual const TargetFrameInfo  &getFrameInfo() const { return frameInfo; }
41   virtual       TargetJITInfo    *getJITInfo()         { return &jitInfo; }
42
43   virtual bool addPassesToEmitAssembly(PassManager &PM, std::ostream &Out);
44   virtual bool addPassesToEmitMachineCode(FunctionPassManager &PM,
45                                           MachineCodeEmitter &MCE);
46 };
47
48 } // End llvm namespace
49
50 #endif