LLVM  10.0.0svn
Mips16RegisterInfo.h
Go to the documentation of this file.
1 //===-- Mips16RegisterInfo.h - Mips16 Register Information ------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // This file contains the Mips16 implementation of the TargetRegisterInfo class.
10 //
11 //===----------------------------------------------------------------------===//
12 
13 #ifndef LLVM_LIB_TARGET_MIPS_MIPS16REGISTERINFO_H
14 #define LLVM_LIB_TARGET_MIPS_MIPS16REGISTERINFO_H
15 
16 #include "MipsRegisterInfo.h"
17 
18 namespace llvm {
19 class Mips16InstrInfo;
20 
22 public:
24 
25  bool requiresRegisterScavenging(const MachineFunction &MF) const override;
26 
27  bool requiresFrameIndexScavenging(const MachineFunction &MF) const override;
28 
29  bool useFPForScavengingIndex(const MachineFunction &MF) const override;
30 
34  const TargetRegisterClass *RC,
35  unsigned Reg) const override;
36 
37  const TargetRegisterClass *intRegClass(unsigned Size) const override;
38 
39 private:
40  void eliminateFI(MachineBasicBlock::iterator II, unsigned OpNo,
41  int FrameIndex, uint64_t StackSize,
42  int64_t SPOffset) const override;
43 };
44 
45 } // end namespace llvm
46 
47 #endif
This class represents lattice values for constants.
Definition: AllocatorList.h:23
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:46