LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
XCoreRegisterInfo.h
Go to the documentation of this file.
1 //===-- XCoreRegisterInfo.h - XCore Register Information Impl ---*- 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 XCore implementation of the MRegisterInfo class.
11 //
12 //===----------------------------------------------------------------------===//
13 
14 #ifndef XCOREREGISTERINFO_H
15 #define XCOREREGISTERINFO_H
16 
18 
19 #define GET_REGINFO_HEADER
20 #include "XCoreGenRegisterInfo.inc"
21 
22 namespace llvm {
23 
24 class TargetInstrInfo;
25 
27 private:
28  void loadConstant(MachineBasicBlock &MBB,
30  unsigned DstReg, int64_t Value, DebugLoc dl) const;
31 
32  void storeToStack(MachineBasicBlock &MBB,
34  unsigned SrcReg, int Offset, DebugLoc dl) const;
35 
36  void loadFromStack(MachineBasicBlock &MBB,
38  unsigned DstReg, int Offset, DebugLoc dl) const;
39 
40 public:
42 
43  /// Code Generation virtual methods...
44 
45  const uint16_t *getCalleeSavedRegs(const MachineFunction *MF = 0) const;
46 
47  BitVector getReservedRegs(const MachineFunction &MF) const;
48 
49  bool requiresRegisterScavenging(const MachineFunction &MF) const;
50 
51  bool trackLivenessAfterRegAlloc(const MachineFunction &MF) const;
52 
53  bool useFPForScavengingIndex(const MachineFunction &MF) const;
54 
56  int SPAdj, unsigned FIOperandNum,
57  RegScavenger *RS = NULL) const;
58 
59  // Debug information queries.
60  unsigned getFrameRegister(const MachineFunction &MF) const;
61 
62  //! Return whether to emit frame moves
63  static bool needsFrameMoves(const MachineFunction &MF);
64 };
65 
66 } // end namespace llvm
67 
68 #endif
bool useFPForScavengingIndex(const MachineFunction &MF) const
static bool needsFrameMoves(const MachineFunction &MF)
Return whether to emit frame moves.
bundle_iterator< MachineInstr, instr_iterator > iterator
bool trackLivenessAfterRegAlloc(const MachineFunction &MF) const
void eliminateFrameIndex(MachineBasicBlock::iterator II, int SPAdj, unsigned FIOperandNum, RegScavenger *RS=NULL) const
unsigned getFrameRegister(const MachineFunction &MF) const
BitVector getReservedRegs(const MachineFunction &MF) const
bool requiresRegisterScavenging(const MachineFunction &MF) const
const uint16_t * getCalleeSavedRegs(const MachineFunction *MF=0) const
Code Generation virtual methods...
#define I(x, y, z)
Definition: MD5.cpp:54
LLVM Value Representation.
Definition: Value.h:66