blob: a68c523f7ef871f435ca08fdab76bfcf2426ea08 [file] [log] [blame]
Chris Lattner5ad021c2004-07-16 07:11:15 +00001//===- SkeletonInstrInfo.h - Instruction Information ------------*- C++ -*-===//
Misha Brukmanb5f662f2005-04-21 23:30:14 +00002//
Chris Lattner5ad021c2004-07-16 07:11:15 +00003// 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 Brukmanb5f662f2005-04-21 23:30:14 +00007//
Chris Lattner5ad021c2004-07-16 07:11:15 +00008//===----------------------------------------------------------------------===//
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
21namespace llvm {
22
23 class SkeletonInstrInfo : public TargetInstrInfo {
24 const SkeletonRegisterInfo RI;
25 public:
26 SkeletonInstrInfo();
Misha Brukmanb5f662f2005-04-21 23:30:14 +000027
Chris Lattner5ad021c2004-07-16 07:11:15 +000028 /// 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