blob: f946d1a9a17a112ee7698351d3e841822ccc5425 [file] [log] [blame]
Brian Gaekee785e532004-02-25 19:28:19 +00001//===- SparcV8InstrInfo.h - SparcV8 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 contains the SparcV8 implementation of the TargetInstrInfo class.
11//
12//===----------------------------------------------------------------------===//
13
14#ifndef SPARCV8INSTRUCTIONINFO_H
15#define SPARCV8INSTRUCTIONINFO_H
16
17#include "llvm/Target/TargetInstrInfo.h"
18#include "SparcV8RegisterInfo.h"
19
20namespace llvm {
21
22class SparcV8InstrInfo : public TargetInstrInfo {
23 const SparcV8RegisterInfo RI;
24public:
25 SparcV8InstrInfo();
26
27 /// getRegisterInfo - TargetInstrInfo is a superset of MRegister info. As
28 /// such, whenever a client has an instance of instruction info, it should
29 /// always be able to get register info as well (through this method).
30 ///
31 virtual const MRegisterInfo &getRegisterInfo() const { return RI; }
Brian Gaekee785e532004-02-25 19:28:19 +000032};
33
34}
35
36#endif