ARMRegisterInfo.h revision 198090
1//===- ARMRegisterInfo.h - ARM Register Information Impl --------*- C++ -*-===// 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is distributed under the University of Illinois Open Source 6// License. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// 9// 10// This file contains the ARM implementation of the TargetRegisterInfo class. 11// 12//===----------------------------------------------------------------------===// 13 14#ifndef ARMREGISTERINFO_H 15#define ARMREGISTERINFO_H 16 17#include "ARM.h" 18#include "llvm/Target/TargetRegisterInfo.h" 19#include "ARMBaseRegisterInfo.h" 20 21namespace llvm { 22 class ARMSubtarget; 23 class ARMBaseInstrInfo; 24 class Type; 25 26namespace ARM { 27 /// SubregIndex - The index of various subregister classes. Note that 28 /// these indices must be kept in sync with the class indices in the 29 /// ARMRegisterInfo.td file. 30 enum SubregIndex { 31 SSUBREG_0 = 1, SSUBREG_1 = 2, SSUBREG_2 = 3, SSUBREG_3 = 4, 32 DSUBREG_0 = 5, DSUBREG_1 = 6 33 }; 34} 35 36struct ARMRegisterInfo : public ARMBaseRegisterInfo { 37public: 38 ARMRegisterInfo(const ARMBaseInstrInfo &tii, const ARMSubtarget &STI); 39}; 40 41} // end namespace llvm 42 43#endif 44