1 //===- IA64InstrInfo.h - IA64 Instruction Information ----------*- C++ -*- ===//
3 // The LLVM Compiler Infrastructure
5 // This file was developed by Duraid Madina and is distributed under the
6 // University of Illinois Open Source License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file contains the IA64 implementation of the TargetInstrInfo class.
12 //===----------------------------------------------------------------------===//
14 #ifndef IA64INSTRUCTIONINFO_H
15 #define IA64INSTRUCTIONINFO_H
17 #include "llvm/Target/TargetInstrInfo.h"
18 #include "IA64RegisterInfo.h"
22 class IA64InstrInfo : public TargetInstrInfo {
23 const IA64RegisterInfo RI;
27 /// getRegisterInfo - TargetInstrInfo is a superset of MRegister info. As
28 /// such, whenever a client has an instance of instruction info, it should
29 /// always be able to get register info as well (through this method).
31 virtual const MRegisterInfo &getRegisterInfo() const { return RI; }
34 // Return true if the instruction is a register to register move and
35 // leave the source and dest operands in the passed parameters.
37 virtual bool isMoveInstr(const MachineInstr& MI,
39 unsigned& destReg) const;
40 virtual unsigned InsertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB,
41 MachineBasicBlock *FBB,
42 const std::vector<MachineOperand> &Cond) const;
46 } // End llvm namespace