LLVM  14.0.0git
SparcRegisterInfo.h
Go to the documentation of this file.
1 //===-- SparcRegisterInfo.h - Sparc Register Information Impl ---*- 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 Sparc implementation of the TargetRegisterInfo class.
10 //
11 //===----------------------------------------------------------------------===//
12 
13 #ifndef LLVM_LIB_TARGET_SPARC_SPARCREGISTERINFO_H
14 #define LLVM_LIB_TARGET_SPARC_SPARCREGISTERINFO_H
15 
17 
18 #define GET_REGINFO_HEADER
19 #include "SparcGenRegisterInfo.inc"
20 
21 namespace llvm {
24 
25  /// Code Generation virtual methods...
26  const MCPhysReg *getCalleeSavedRegs(const MachineFunction *MF) const override;
28  CallingConv::ID CC) const override;
29 
31 
32  BitVector getReservedRegs(const MachineFunction &MF) const override;
33 
35  unsigned Kind) const override;
36 
38  int SPAdj, unsigned FIOperandNum,
39  RegScavenger *RS = nullptr) const override;
40 
41  Register getFrameRegister(const MachineFunction &MF) const override;
42 
43  bool canRealignStack(const MachineFunction &MF) const override;
44 
45 };
46 
47 } // end namespace llvm
48 
49 #endif
llvm::SparcRegisterInfo
Definition: SparcRegisterInfo.h:22
llvm
This file implements support for optimizing divisions by a constant.
Definition: AllocatorList.h:23
llvm::SparcRegisterInfo::getCalleeSavedRegs
const MCPhysReg * getCalleeSavedRegs(const MachineFunction *MF) const override
Code Generation virtual methods...
Definition: SparcRegisterInfo.cpp:39
llvm::SparcRegisterInfo::getReservedRegs
BitVector getReservedRegs(const MachineFunction &MF) const override
Definition: SparcRegisterInfo.cpp:54
llvm::SparcRegisterInfo::getRTCallPreservedMask
const uint32_t * getRTCallPreservedMask(CallingConv::ID CC) const
Definition: SparcRegisterInfo.cpp:50
llvm::SparcRegisterInfo::SparcRegisterInfo
SparcRegisterInfo()
Definition: SparcRegisterInfo.cpp:36
llvm::SparcRegisterInfo::getPointerRegClass
const TargetRegisterClass * getPointerRegClass(const MachineFunction &MF, unsigned Kind) const override
Definition: SparcRegisterInfo.cpp:105
llvm::TargetRegisterClass
Definition: TargetRegisterInfo.h:46
llvm::SparcRegisterInfo::getCallPreservedMask
const uint32_t * getCallPreservedMask(const MachineFunction &MF, CallingConv::ID CC) const override
Definition: SparcRegisterInfo.cpp:44
llvm::BitVector
Definition: BitVector.h:74
llvm::lltok::Kind
Kind
Definition: LLToken.h:18
llvm::CallingConv::ID
unsigned ID
LLVM IR allows to use arbitrary numbers as calling convention identifiers.
Definition: CallingConv.h:24
llvm::RegScavenger
Definition: RegisterScavenging.h:34
llvm::SparcRegisterInfo::canRealignStack
bool canRealignStack(const MachineFunction &MF) const override
Definition: SparcRegisterInfo.cpp:223
llvm::MachineFunction
Definition: MachineFunction.h:234
uint32_t
SparcGenRegisterInfo
llvm::Register
Wrapper class representing virtual and physical registers.
Definition: Register.h:19
uint16_t
llvm::SparcRegisterInfo::getFrameRegister
Register getFrameRegister(const MachineFunction &MF) const override
Definition: SparcRegisterInfo.cpp:215
llvm::SparcRegisterInfo::eliminateFrameIndex
void eliminateFrameIndex(MachineBasicBlock::iterator II, int SPAdj, unsigned FIOperandNum, RegScavenger *RS=nullptr) const override
Definition: SparcRegisterInfo.cpp:164
llvm::MachineInstrBundleIterator< MachineInstr >
TargetRegisterInfo.h