Chris Lattner | 5ad021c | 2004-07-16 07:11:15 +0000 | [diff] [blame] | 1 | //===- SkeletonInstrInfo.h - Instruction Information ------------*- C++ -*-===// |
Misha Brukman | b5f662f | 2005-04-21 23:30:14 +0000 | [diff] [blame] | 2 | // |
Chris Lattner | 5ad021c | 2004-07-16 07:11:15 +0000 | [diff] [blame] | 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file was developed by the LLVM research group and is distributed under |
| 6 | // the University of Illinois Open Source License. See LICENSE.TXT for details. |
Misha Brukman | b5f662f | 2005-04-21 23:30:14 +0000 | [diff] [blame] | 7 | // |
Chris Lattner | 5ad021c | 2004-07-16 07:11:15 +0000 | [diff] [blame] | 8 | //===----------------------------------------------------------------------===// |
| 9 | // |
| 10 | // This file is where the target-specific implementation of the TargetInstrInfo |
| 11 | // class goes. |
| 12 | // |
| 13 | //===----------------------------------------------------------------------===// |
| 14 | |
| 15 | #ifndef SKELETON_INSTRUCTIONINFO_H |
| 16 | #define SKELETON_INSTRUCTIONINFO_H |
| 17 | |
| 18 | #include "llvm/Target/TargetInstrInfo.h" |
| 19 | #include "SkeletonRegisterInfo.h" |
| 20 | |
| 21 | namespace llvm { |
| 22 | |
| 23 | class SkeletonInstrInfo : public TargetInstrInfo { |
| 24 | const SkeletonRegisterInfo RI; |
| 25 | public: |
| 26 | SkeletonInstrInfo(); |
Misha Brukman | b5f662f | 2005-04-21 23:30:14 +0000 | [diff] [blame] | 27 | |
Chris Lattner | 5ad021c | 2004-07-16 07:11:15 +0000 | [diff] [blame] | 28 | /// getRegisterInfo - TargetInstrInfo is a superset of MRegister info. As |
| 29 | /// such, whenever a client has an instance of instruction info, it should |
| 30 | /// always be able to get register info as well (through this method). |
| 31 | /// |
| 32 | virtual const MRegisterInfo &getRegisterInfo() const { return RI; } |
| 33 | }; |
| 34 | } |
| 35 | |
| 36 | #endif |