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 | |
Justin Holewinski | 2097d70 | 2011-09-29 14:25:48 +0000 | [diff] [blame^] | 18 | #include "MCTargetDesc/PTXBaseInfo.h" |
Nick Lewycky | f7a3c50 | 2010-09-07 18:14:24 +0000 | [diff] [blame] | 19 | #include "llvm/Target/TargetMachine.h" |
| 20 | |
| 21 | namespace llvm { |
Justin Holewinski | d8e4ed2 | 2011-09-28 14:32:04 +0000 | [diff] [blame] | 22 | class MachineInstr; |
| 23 | class MCInst; |
| 24 | class PTXAsmPrinter; |
Eric Christopher | 50880d0 | 2010-09-18 18:52:28 +0000 | [diff] [blame] | 25 | class PTXTargetMachine; |
| 26 | class FunctionPass; |
| 27 | |
| 28 | FunctionPass *createPTXISelDag(PTXTargetMachine &TM, |
| 29 | CodeGenOpt::Level OptLevel); |
| 30 | |
Che-Liang Chiou | 3278c42 | 2010-11-08 03:00:52 +0000 | [diff] [blame] | 31 | FunctionPass *createPTXMFInfoExtract(PTXTargetMachine &TM, |
| 32 | CodeGenOpt::Level OptLevel); |
| 33 | |
Justin Holewinski | 247ee00 | 2011-09-22 16:45:33 +0000 | [diff] [blame] | 34 | FunctionPass *createPTXRegisterAllocator(); |
| 35 | |
Justin Holewinski | d8e4ed2 | 2011-09-28 14:32:04 +0000 | [diff] [blame] | 36 | void LowerPTXMachineInstrToMCInst(const MachineInstr *MI, MCInst &OutMI, |
| 37 | PTXAsmPrinter &AP); |
| 38 | |
Nick Lewycky | f7a3c50 | 2010-09-07 18:14:24 +0000 | [diff] [blame] | 39 | } // namespace llvm; |
| 40 | |
Nick Lewycky | f7a3c50 | 2010-09-07 18:14:24 +0000 | [diff] [blame] | 41 | #endif // PTX_H |