Initial checkin of the rest of the skeleton target
[oota-llvm.git] / lib / Target / Skeleton / SkeletonInstrInfo.h
1 //===- SkeletonInstrInfo.h - Instruction Information ------------*- C++ -*-===//
2 // 
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.
7 // 
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();
27     
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