1 //===- PowerPCInstrInfo.h - PowerPC Instruction Information -----*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
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.
8 //===----------------------------------------------------------------------===//
10 // This file contains the PowerPC implementation of the TargetInstrInfo class.
12 //===----------------------------------------------------------------------===//
14 #ifndef POWERPCINSTRUCTIONINFO_H
15 #define POWERPCINSTRUCTIONINFO_H
17 #include "llvm/Target/TargetInstrInfo.h"
18 #include "PowerPCRegisterInfo.h"
64 class PowerPCInstrInfo : public TargetInstrInfo {
65 const PowerPCRegisterInfo RI;
69 /// getRegisterInfo - TargetInstrInfo is a superset of MRegister info. As
70 /// such, whenever a client has an instance of instruction info, it should
71 /// always be able to get register info as well (through this method).
73 virtual const MRegisterInfo &getRegisterInfo() const { return RI; }