Nick Lewycky | f7a3c50 | 2010-09-07 18:14:24 +0000 | [diff] [blame] | 1 | // |
| 2 | // The LLVM Compiler Infrastructure |
| 3 | // |
| 4 | // This file is distributed under the University of Illinois Open Source |
| 5 | // License. See LICENSE.TXT for details. |
| 6 | // |
| 7 | //===----------------------------------------------------------------------===// |
| 8 | // |
| 9 | // This file contains the entry points for global functions defined in the LLVM |
| 10 | // PTX back-end. |
| 11 | // |
| 12 | //===----------------------------------------------------------------------===// |
| 13 | |
| 14 | #ifndef PTX_H |
| 15 | #define PTX_H |
| 16 | |
Justin Holewinski | 2097d70 | 2011-09-29 14:25:48 +0000 | [diff] [blame] | 17 | #include "MCTargetDesc/PTXBaseInfo.h" |
Nick Lewycky | f7a3c50 | 2010-09-07 18:14:24 +0000 | [diff] [blame] | 18 | #include "llvm/Target/TargetMachine.h" |
| 19 | |
| 20 | namespace llvm { |
Justin Holewinski | d8e4ed2 | 2011-09-28 14:32:04 +0000 | [diff] [blame] | 21 | class MachineInstr; |
| 22 | class MCInst; |
| 23 | class PTXAsmPrinter; |
Eric Christopher | 50880d0 | 2010-09-18 18:52:28 +0000 | [diff] [blame] | 24 | class PTXTargetMachine; |
| 25 | class FunctionPass; |
| 26 | |
| 27 | FunctionPass *createPTXISelDag(PTXTargetMachine &TM, |
| 28 | CodeGenOpt::Level OptLevel); |
| 29 | |
Che-Liang Chiou | 3278c42 | 2010-11-08 03:00:52 +0000 | [diff] [blame] | 30 | FunctionPass *createPTXMFInfoExtract(PTXTargetMachine &TM, |
| 31 | CodeGenOpt::Level OptLevel); |
| 32 | |
Justin Holewinski | c90e149 | 2011-09-30 12:54:43 +0000 | [diff] [blame] | 33 | FunctionPass *createPTXFPRoundingModePass(PTXTargetMachine &TM, |
| 34 | CodeGenOpt::Level OptLevel); |
| 35 | |
Justin Holewinski | 247ee00 | 2011-09-22 16:45:33 +0000 | [diff] [blame] | 36 | FunctionPass *createPTXRegisterAllocator(); |
| 37 | |
Justin Holewinski | d8e4ed2 | 2011-09-28 14:32:04 +0000 | [diff] [blame] | 38 | void LowerPTXMachineInstrToMCInst(const MachineInstr *MI, MCInst &OutMI, |
| 39 | PTXAsmPrinter &AP); |
| 40 | |
Nick Lewycky | f7a3c50 | 2010-09-07 18:14:24 +0000 | [diff] [blame] | 41 | } // namespace llvm; |
| 42 | |
Nick Lewycky | f7a3c50 | 2010-09-07 18:14:24 +0000 | [diff] [blame] | 43 | #endif // PTX_H |