LLVM API Documentation
00001 //===- ARMInstrInfo.h - ARM Instruction Information -------------*- C++ -*-===// 00002 // 00003 // The LLVM Compiler Infrastructure 00004 // 00005 // This file is distributed under the University of Illinois Open Source 00006 // License. See LICENSE.TXT for details. 00007 // 00008 //===----------------------------------------------------------------------===// 00009 // 00010 // This file contains the ARM implementation of the TargetInstrInfo class. 00011 // 00012 //===----------------------------------------------------------------------===// 00013 00014 #ifndef ARMINSTRUCTIONINFO_H 00015 #define ARMINSTRUCTIONINFO_H 00016 00017 #include "llvm/Target/TargetInstrInfo.h" 00018 #include "ARMBaseInstrInfo.h" 00019 #include "ARMRegisterInfo.h" 00020 #include "ARMSubtarget.h" 00021 #include "ARM.h" 00022 00023 namespace llvm { 00024 class ARMSubtarget; 00025 00026 class ARMInstrInfo : public ARMBaseInstrInfo { 00027 ARMRegisterInfo RI; 00028 const ARMSubtarget &Subtarget; 00029 public: 00030 explicit ARMInstrInfo(const ARMSubtarget &STI); 00031 00032 // Return the non-pre/post incrementing version of 'Opc'. Return 0 00033 // if there is not such an opcode. 00034 unsigned getUnindexedOpcode(unsigned Opc) const; 00035 00036 // Return true if the block does not fall through. 00037 bool BlockHasNoFallThrough(const MachineBasicBlock &MBB) const; 00038 00039 /// getRegisterInfo - TargetInstrInfo is a superset of MRegister info. As 00040 /// such, whenever a client has an instance of instruction info, it should 00041 /// always be able to get register info as well (through this method). 00042 /// 00043 const ARMRegisterInfo &getRegisterInfo() const { return RI; } 00044 00045 void reMaterialize(MachineBasicBlock &MBB, MachineBasicBlock::iterator MI, 00046 unsigned DestReg, unsigned SubIdx, 00047 const MachineInstr *Orig) const; 00048 }; 00049 00050 } 00051 00052 #endif