blob: 5a96356873d8d6ce6a32028c0dbd1a69fd68e816 [file] [log] [blame]
Duraid Madina9b9d45f2005-03-17 18:17:03 +00001//===- IA64InstrInfo.h - IA64 Instruction Information ----------*- C++ -*- ===//
2//
3// The LLVM Compiler Infrastructure
4//
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.
7//
8//===----------------------------------------------------------------------===//
9//
10// This file contains the IA64 implementation of the TargetInstrInfo class.
11//
12//===----------------------------------------------------------------------===//
13
14#ifndef IA64INSTRUCTIONINFO_H
15#define IA64INSTRUCTIONINFO_H
16
17#include "llvm/Target/TargetInstrInfo.h"
18#include "IA64RegisterInfo.h"
19
20namespace llvm {
21
22/// IA64II - This namespace holds all of the target specific flags that
23/// instruction info tracks.
24/// FIXME: now gone!
25
26 class IA64InstrInfo : public TargetInstrInfo {
27 const IA64RegisterInfo RI;
28public:
29 IA64InstrInfo();
30
31 /// getRegisterInfo - TargetInstrInfo is a superset of MRegister info. As
32 /// such, whenever a client has an instance of instruction info, it should
33 /// always be able to get register info as well (through this method).
34 ///
35 virtual const MRegisterInfo &getRegisterInfo() const { return RI; }
36
37 //
38 // Return true if the instruction is a register to register move and
39 // leave the source and dest operands in the passed parameters.
40 //
41 virtual bool isMoveInstr(const MachineInstr& MI,
42 unsigned& sourceReg,
43 unsigned& destReg) const;
44
45};
46
47} // End llvm namespace
48
49#endif
50