Put Target definitions inside Target specific header, and llvm namespace.
[oota-llvm.git] / lib / Target / XCore / XCore.h
1 //===-- XCore.h - Top-level interface for XCore representation --*- 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 contains the entry points for global functions defined in the LLVM
11 // XCore back-end.
12 //
13 //===----------------------------------------------------------------------===//
14
15 #ifndef TARGET_XCORE_H
16 #define TARGET_XCORE_H
17
18 #include "llvm/Target/TargetMachine.h"
19
20 namespace llvm {
21   class FunctionPass;
22   class TargetMachine;
23   class XCoreTargetMachine;
24   class formatted_raw_ostream;
25
26   FunctionPass *createXCoreISelDag(XCoreTargetMachine &TM);
27   FunctionPass *createXCoreCodePrinterPass(formatted_raw_ostream &OS,
28                                            TargetMachine &TM,
29                                            bool Verbose);
30
31   extern Target TheXCoreTarget;
32
33 } // end namespace llvm;
34
35 // Defines symbolic names for XCore registers.  This defines a mapping from
36 // register name to register number.
37 //
38 #include "XCoreGenRegisterNames.inc"
39
40 // Defines symbolic names for the XCore instructions.
41 //
42 #include "XCoreGenInstrNames.inc"
43
44 #endif