Eric Christopher | 50880d0 | 2010-09-18 18:52:28 +0000 | [diff] [blame^] | 1 | //===- PTXInstrInfo.h - PTX Instruction Information -------------*- 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 PTX implementation of the TargetInstrInfo class. |
| 11 | // |
| 12 | //===----------------------------------------------------------------------===// |
| 13 | |
| 14 | #ifndef PTX_INSTR_INFO_H |
| 15 | #define PTX_INSTR_INFO_H |
| 16 | |
| 17 | #include "PTXRegisterInfo.h" |
| 18 | #include "llvm/Target/TargetInstrInfo.h" |
| 19 | |
| 20 | namespace llvm { |
| 21 | class PTXTargetMachine; |
| 22 | |
| 23 | class PTXInstrInfo : public TargetInstrInfoImpl { |
| 24 | private: |
| 25 | const PTXRegisterInfo RI; |
| 26 | PTXTargetMachine &TM; |
| 27 | |
| 28 | public: |
| 29 | explicit PTXInstrInfo(PTXTargetMachine &_TM); |
| 30 | |
| 31 | virtual const PTXRegisterInfo &getRegisterInfo() const { return RI; } |
| 32 | }; // class PTXInstrInfo |
| 33 | } // namespace llvm |
| 34 | |
| 35 | #endif // PTX_INSTR_INFO_H |