LLVM  7.0.0
Nios2InstrInfo.h
Go to the documentation of this file.
1 //===-- Nios2InstrInfo.h - Nios2 Instruction Information --------*- 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 Nios2 implementation of the TargetInstrInfo class.
11 //
12 //===----------------------------------------------------------------------===//
13 
14 #ifndef LLVM_LIB_TARGET_NIOS2_NIOS2INSTRINFO_H
15 #define LLVM_LIB_TARGET_NIOS2_NIOS2INSTRINFO_H
16 
17 #include "Nios2RegisterInfo.h"
19 
20 #define GET_INSTRINFO_HEADER
21 #include "Nios2GenInstrInfo.inc"
22 
23 namespace llvm {
24 
25 class Nios2Subtarget;
26 
28  const Nios2RegisterInfo RI;
29  const Nios2Subtarget &Subtarget;
30  virtual void anchor();
31 
32 public:
33  explicit Nios2InstrInfo(Nios2Subtarget &ST);
34 
35  /// getRegisterInfo - TargetInstrInfo is a superset of MRegister info. As
36  /// such, whenever a client has an instance of instruction info, it should
37  /// always be able to get register info as well (through this method).
38  ///
39  const Nios2RegisterInfo &getRegisterInfo() const { return RI; };
40 
41  bool expandPostRAPseudo(MachineInstr &MI) const override;
42 
44  const DebugLoc &DL, unsigned DestReg, unsigned SrcReg,
45  bool KillSrc) const override;
46 };
47 } // namespace llvm
48 
49 #endif
Compute iterated dominance frontiers using a linear time algorithm.
Definition: AllocatorList.h:24
A debug info location.
Definition: DebugLoc.h:34
const Nios2RegisterInfo & getRegisterInfo() const
getRegisterInfo - TargetInstrInfo is a superset of MRegister info.
bool expandPostRAPseudo(MachineInstr &MI) const override
Expand Pseudo instructions into real backend instructions.
void copyPhysReg(MachineBasicBlock &MBB, MachineBasicBlock::iterator MI, const DebugLoc &DL, unsigned DestReg, unsigned SrcReg, bool KillSrc) const override
Representation of each machine instruction.
Definition: MachineInstr.h:60
IRTranslator LLVM IR MI
Nios2InstrInfo(Nios2Subtarget &ST)