Nick Lewycky | f7a3c50 | 2010-09-07 18:14:24 +0000 | [diff] [blame] | 1 | //===-- PTX.h - Top-level interface for PTX 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 | // PTX back-end. |
| 12 | // |
| 13 | //===----------------------------------------------------------------------===// |
| 14 | |
| 15 | #ifndef PTX_H |
| 16 | #define PTX_H |
| 17 | |
| 18 | #include "llvm/Target/TargetMachine.h" |
| 19 | |
| 20 | namespace llvm { |
Eric Christopher | 50880d0 | 2010-09-18 18:52:28 +0000 | [diff] [blame^] | 21 | class PTXTargetMachine; |
| 22 | class FunctionPass; |
| 23 | |
| 24 | FunctionPass *createPTXISelDag(PTXTargetMachine &TM, |
| 25 | CodeGenOpt::Level OptLevel); |
| 26 | |
Nick Lewycky | f7a3c50 | 2010-09-07 18:14:24 +0000 | [diff] [blame] | 27 | extern Target ThePTXTarget; |
| 28 | } // namespace llvm; |
| 29 | |
Eric Christopher | 50880d0 | 2010-09-18 18:52:28 +0000 | [diff] [blame^] | 30 | // Defines symbolic names for PTX registers. |
| 31 | #include "PTXGenRegisterNames.inc" |
| 32 | |
| 33 | // Defines symbolic names for the PTX instructions. |
| 34 | #include "PTXGenInstrNames.inc" |
| 35 | |
Nick Lewycky | f7a3c50 | 2010-09-07 18:14:24 +0000 | [diff] [blame] | 36 | #endif // PTX_H |