LLVM API Documentation
00001 //===- SkeletonInstrInfo.h - Instruction Information ------------*- C++ -*-===// 00002 // 00003 // The LLVM Compiler Infrastructure 00004 // 00005 // This file was developed by the LLVM research group and is distributed under 00006 // the University of Illinois Open Source License. See LICENSE.TXT for details. 00007 // 00008 //===----------------------------------------------------------------------===// 00009 // 00010 // This file is where the target-specific implementation of the TargetInstrInfo 00011 // class goes. 00012 // 00013 //===----------------------------------------------------------------------===// 00014 00015 #ifndef SKELETON_INSTRUCTIONINFO_H 00016 #define SKELETON_INSTRUCTIONINFO_H 00017 00018 #include "llvm/Target/TargetInstrInfo.h" 00019 #include "SkeletonRegisterInfo.h" 00020 00021 namespace llvm { 00022 00023 class SkeletonInstrInfo : public TargetInstrInfo { 00024 const SkeletonRegisterInfo RI; 00025 public: 00026 SkeletonInstrInfo(); 00027 00028 /// getRegisterInfo - TargetInstrInfo is a superset of MRegister info. As 00029 /// such, whenever a client has an instance of instruction info, it should 00030 /// always be able to get register info as well (through this method). 00031 /// 00032 virtual const MRegisterInfo &getRegisterInfo() const { return RI; } 00033 }; 00034 } 00035 00036 #endif