1*9880d681SAndroid Build Coastguard Worker //===-- ARMInstrInfo.h - ARM Instruction Information ------------*- C++ -*-===// 2*9880d681SAndroid Build Coastguard Worker // 3*9880d681SAndroid Build Coastguard Worker // The LLVM Compiler Infrastructure 4*9880d681SAndroid Build Coastguard Worker // 5*9880d681SAndroid Build Coastguard Worker // This file is distributed under the University of Illinois Open Source 6*9880d681SAndroid Build Coastguard Worker // License. See LICENSE.TXT for details. 7*9880d681SAndroid Build Coastguard Worker // 8*9880d681SAndroid Build Coastguard Worker //===----------------------------------------------------------------------===// 9*9880d681SAndroid Build Coastguard Worker // 10*9880d681SAndroid Build Coastguard Worker // This file contains the ARM implementation of the TargetInstrInfo class. 11*9880d681SAndroid Build Coastguard Worker // 12*9880d681SAndroid Build Coastguard Worker //===----------------------------------------------------------------------===// 13*9880d681SAndroid Build Coastguard Worker 14*9880d681SAndroid Build Coastguard Worker #ifndef LLVM_LIB_TARGET_ARM_ARMINSTRINFO_H 15*9880d681SAndroid Build Coastguard Worker #define LLVM_LIB_TARGET_ARM_ARMINSTRINFO_H 16*9880d681SAndroid Build Coastguard Worker 17*9880d681SAndroid Build Coastguard Worker #include "ARMBaseInstrInfo.h" 18*9880d681SAndroid Build Coastguard Worker #include "ARMRegisterInfo.h" 19*9880d681SAndroid Build Coastguard Worker 20*9880d681SAndroid Build Coastguard Worker namespace llvm { 21*9880d681SAndroid Build Coastguard Worker class ARMSubtarget; 22*9880d681SAndroid Build Coastguard Worker 23*9880d681SAndroid Build Coastguard Worker class ARMInstrInfo : public ARMBaseInstrInfo { 24*9880d681SAndroid Build Coastguard Worker ARMRegisterInfo RI; 25*9880d681SAndroid Build Coastguard Worker public: 26*9880d681SAndroid Build Coastguard Worker explicit ARMInstrInfo(const ARMSubtarget &STI); 27*9880d681SAndroid Build Coastguard Worker 28*9880d681SAndroid Build Coastguard Worker /// getNoopForMachoTarget - Return the noop instruction to use for a noop. 29*9880d681SAndroid Build Coastguard Worker void getNoopForMachoTarget(MCInst &NopInst) const override; 30*9880d681SAndroid Build Coastguard Worker 31*9880d681SAndroid Build Coastguard Worker // Return the non-pre/post incrementing version of 'Opc'. Return 0 32*9880d681SAndroid Build Coastguard Worker // if there is not such an opcode. 33*9880d681SAndroid Build Coastguard Worker unsigned getUnindexedOpcode(unsigned Opc) const override; 34*9880d681SAndroid Build Coastguard Worker 35*9880d681SAndroid Build Coastguard Worker /// getRegisterInfo - TargetInstrInfo is a superset of MRegister info. As 36*9880d681SAndroid Build Coastguard Worker /// such, whenever a client has an instance of instruction info, it should 37*9880d681SAndroid Build Coastguard Worker /// always be able to get register info as well (through this method). 38*9880d681SAndroid Build Coastguard Worker /// getRegisterInfo()39*9880d681SAndroid Build Coastguard Worker const ARMRegisterInfo &getRegisterInfo() const override { return RI; } 40*9880d681SAndroid Build Coastguard Worker 41*9880d681SAndroid Build Coastguard Worker private: 42*9880d681SAndroid Build Coastguard Worker void expandLoadStackGuard(MachineBasicBlock::iterator MI) const override; 43*9880d681SAndroid Build Coastguard Worker }; 44*9880d681SAndroid Build Coastguard Worker 45*9880d681SAndroid Build Coastguard Worker } 46*9880d681SAndroid Build Coastguard Worker 47*9880d681SAndroid Build Coastguard Worker #endif 48