Anton Korobeynikov | f2c3e17 | 2009-05-03 12:57:15 +0000 | [diff] [blame] | 1 | //==-- MSP430.h - Top-level interface for MSP430 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 |
| 11 | // the LLVM MSP430 backend. |
| 12 | // |
| 13 | //===----------------------------------------------------------------------===// |
| 14 | |
| 15 | #ifndef LLVM_TARGET_MSP430_H |
| 16 | #define LLVM_TARGET_MSP430_H |
| 17 | |
Anton Korobeynikov | 60871cb | 2009-05-03 13:19:42 +0000 | [diff] [blame] | 18 | #include "llvm/Target/TargetMachine.h" |
| 19 | |
Anton Korobeynikov | f2c3e17 | 2009-05-03 12:57:15 +0000 | [diff] [blame] | 20 | namespace llvm { |
| 21 | class MSP430TargetMachine; |
| 22 | class FunctionPass; |
David Greene | 7184781 | 2009-07-14 20:18:05 +0000 | [diff] [blame] | 23 | class formatted_raw_ostream; |
Anton Korobeynikov | f2c3e17 | 2009-05-03 12:57:15 +0000 | [diff] [blame] | 24 | |
Anton Korobeynikov | 60871cb | 2009-05-03 13:19:42 +0000 | [diff] [blame] | 25 | FunctionPass *createMSP430ISelDag(MSP430TargetMachine &TM, |
| 26 | CodeGenOpt::Level OptLevel); |
David Greene | 7184781 | 2009-07-14 20:18:05 +0000 | [diff] [blame] | 27 | FunctionPass *createMSP430CodePrinterPass(formatted_raw_ostream &o, |
Daniel Dunbar | 1e1f8ba | 2009-07-15 23:17:20 +0000 | [diff] [blame] | 28 | TargetMachine &tm, |
Anton Korobeynikov | 60871cb | 2009-05-03 13:19:42 +0000 | [diff] [blame] | 29 | bool verbose); |
Daniel Dunbar | 4cb1e13 | 2009-07-18 23:03:22 +0000 | [diff] [blame^] | 30 | |
| 31 | extern Target TheMSP430Target; |
| 32 | |
Anton Korobeynikov | f2c3e17 | 2009-05-03 12:57:15 +0000 | [diff] [blame] | 33 | } // end namespace llvm; |
| 34 | |
| 35 | // Defines symbolic names for MSP430 registers. |
| 36 | // This defines a mapping from register name to register number. |
| 37 | #include "MSP430GenRegisterNames.inc" |
| 38 | |
| 39 | // Defines symbolic names for the MSP430 instructions. |
| 40 | #include "MSP430GenInstrNames.inc" |
| 41 | |
| 42 | #endif |