LLVM  8.0.1
Mips16RegisterInfo.h
Go to the documentation of this file.
1 //===-- Mips16RegisterInfo.h - Mips16 Register 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 Mips16 implementation of the TargetRegisterInfo class.
11 //
12 //===----------------------------------------------------------------------===//
13 
14 #ifndef LLVM_LIB_TARGET_MIPS_MIPS16REGISTERINFO_H
15 #define LLVM_LIB_TARGET_MIPS_MIPS16REGISTERINFO_H
16 
17 #include "MipsRegisterInfo.h"
18 
19 namespace llvm {
20 class Mips16InstrInfo;
21 
23 public:
25 
26  bool requiresRegisterScavenging(const MachineFunction &MF) const override;
27 
28  bool requiresFrameIndexScavenging(const MachineFunction &MF) const override;
29 
30  bool useFPForScavengingIndex(const MachineFunction &MF) const override;
31 
35  const TargetRegisterClass *RC,
36  unsigned Reg) const override;
37 
38  const TargetRegisterClass *intRegClass(unsigned Size) const override;
39 
40 private:
41  void eliminateFI(MachineBasicBlock::iterator II, unsigned OpNo,
42  int FrameIndex, uint64_t StackSize,
43  int64_t SPOffset) const override;
44 };
45 
46 } // end namespace llvm
47 
48 #endif
This class represents lattice values for constants.
Definition: AllocatorList.h:24
bool useFPForScavengingIndex(const MachineFunction &MF) const override
bool requiresFrameIndexScavenging(const MachineFunction &MF) const override
unsigned Reg
bool saveScavengerRegister(MachineBasicBlock &MBB, MachineBasicBlock::iterator I, MachineBasicBlock::iterator &UseMI, const TargetRegisterClass *RC, unsigned Reg) const override
bool requiresRegisterScavenging(const MachineFunction &MF) const override
const TargetRegisterClass * intRegClass(unsigned Size) const override
Return GPR register class.
MachineInstrBuilder & UseMI
#define I(x, y, z)
Definition: MD5.cpp:58
uint32_t Size
Definition: Profile.cpp:47