Remove dead code. (S|U)MUL_LO is now lowered to LMUL or MACC(S|U)
[oota-llvm.git] / lib / Target / Blackfin / BlackfinTargetMachine.h
1 //===-- BlackfinTargetMachine.h - TargetMachine for Blackfin ----*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This file declares the Blackfin specific subclass of TargetMachine.
11 //
12 //===----------------------------------------------------------------------===//
13
14 #ifndef BLACKFINTARGETMACHINE_H
15 #define BLACKFINTARGETMACHINE_H
16
17 #include "llvm/Target/TargetMachine.h"
18 #include "llvm/Target/TargetData.h"
19 #include "llvm/Target/TargetFrameInfo.h"
20 #include "BlackfinInstrInfo.h"
21 #include "BlackfinSubtarget.h"
22 #include "BlackfinISelLowering.h"
23 #include "BlackfinIntrinsicInfo.h"
24
25 namespace llvm {
26
27   class BlackfinTargetMachine : public LLVMTargetMachine {
28     const TargetData DataLayout;
29     BlackfinSubtarget Subtarget;
30     BlackfinTargetLowering TLInfo;
31     BlackfinInstrInfo InstrInfo;
32     TargetFrameInfo FrameInfo;
33     BlackfinIntrinsicInfo IntrinsicInfo;
34   public:
35     BlackfinTargetMachine(const Target &T, const std::string &TT,
36                           const std::string &FS);
37
38     virtual const BlackfinInstrInfo *getInstrInfo() const { return &InstrInfo; }
39     virtual const TargetFrameInfo *getFrameInfo() const { return &FrameInfo; }
40     virtual const BlackfinSubtarget *getSubtargetImpl() const {
41       return &Subtarget;
42     }
43     virtual const BlackfinRegisterInfo *getRegisterInfo() const {
44       return &InstrInfo.getRegisterInfo();
45     }
46     virtual BlackfinTargetLowering* getTargetLowering() const {
47       return const_cast<BlackfinTargetLowering*>(&TLInfo);
48     }
49     virtual const TargetData *getTargetData() const { return &DataLayout; }
50     virtual bool addInstSelector(PassManagerBase &PM,
51                                  CodeGenOpt::Level OptLevel);
52     const TargetIntrinsicInfo *getIntrinsicInfo() const {
53       return &IntrinsicInfo;
54     }
55   };
56
57 } // end namespace llvm
58
59 #endif