LLVM  14.0.0git
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 
21 public:
23 
24  bool requiresRegisterScavenging(const MachineFunction &MF) const override;
25 
26  bool requiresFrameIndexScavenging(const MachineFunction &MF) const override;
27 
28  bool useFPForScavengingIndex(const MachineFunction &MF) const override;
29 
33  const TargetRegisterClass *RC,
34  Register Reg) const override;
35 
36  const TargetRegisterClass *intRegClass(unsigned Size) const override;
37 
38 private:
39  void eliminateFI(MachineBasicBlock::iterator II, unsigned OpNo,
40  int FrameIndex, uint64_t StackSize,
41  int64_t SPOffset) const override;
42 };
43 
44 } // end namespace llvm
45 
46 #endif
llvm::Check::Size
@ Size
Definition: FileCheck.h:73
llvm
---------------------— PointerInfo ------------------------------------—
Definition: AllocatorList.h:23
Reg
unsigned Reg
Definition: MachineSink.cpp:1566
UseMI
MachineInstrBuilder & UseMI
Definition: AArch64ExpandPseudoInsts.cpp:102
llvm::Mips16RegisterInfo::requiresFrameIndexScavenging
bool requiresFrameIndexScavenging(const MachineFunction &MF) const override
Definition: Mips16RegisterInfo.cpp:47
llvm::TargetRegisterClass
Definition: TargetRegisterInfo.h:46
llvm::Mips16RegisterInfo
Definition: Mips16RegisterInfo.h:20
MipsRegisterInfo.h
llvm::Mips16RegisterInfo::useFPForScavengingIndex
bool useFPForScavengingIndex(const MachineFunction &MF) const override
Definition: Mips16RegisterInfo.cpp:52
llvm::MachineBasicBlock
Definition: MachineBasicBlock.h:95
I
#define I(x, y, z)
Definition: MD5.cpp:59
llvm::MipsRegisterInfo
Definition: MipsRegisterInfo.h:27
llvm::Mips16RegisterInfo::requiresRegisterScavenging
bool requiresRegisterScavenging(const MachineFunction &MF) const override
Definition: Mips16RegisterInfo.cpp:43
llvm::MachineFunction
Definition: MachineFunction.h:230
llvm::Mips16RegisterInfo::Mips16RegisterInfo
Mips16RegisterInfo()
Definition: Mips16RegisterInfo.cpp:40
llvm::Register
Wrapper class representing virtual and physical registers.
Definition: Register.h:19
llvm::ISD::FrameIndex
@ FrameIndex
Definition: ISDOpcodes.h:80
MBB
MachineBasicBlock & MBB
Definition: AArch64SLSHardening.cpp:74
llvm::Mips16RegisterInfo::intRegClass
const TargetRegisterClass * intRegClass(unsigned Size) const override
Return GPR register class.
Definition: Mips16RegisterInfo.cpp:68
llvm::Mips16RegisterInfo::saveScavengerRegister
bool saveScavengerRegister(MachineBasicBlock &MBB, MachineBasicBlock::iterator I, MachineBasicBlock::iterator &UseMI, const TargetRegisterClass *RC, Register Reg) const override
Definition: Mips16RegisterInfo.cpp:56
llvm::MachineInstrBundleIterator< MachineInstr >