LLVM 24.0.0git
ARCRegisterInfo.h
Go to the documentation of this file.
1//===- ARCRegisterInfo.h - ARC 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 ARC implementation of the MRegisterInfo class.
10//
11//===----------------------------------------------------------------------===//
12
13#ifndef LLVM_LIB_TARGET_ARC_ARCREGISTERINFO_H
14#define LLVM_LIB_TARGET_ARC_ARCREGISTERINFO_H
15
17
18#define GET_REGINFO_HEADER
19#include "ARCGenRegisterInfo.inc"
20
21namespace llvm {
22
23class ARCSubtarget;
24
27
28public:
30
31 /// Code Generation virtual methods...
32
33 const MCPhysReg *getCalleeSavedRegs(const MachineFunction *MF) const override;
34
35 BitVector getReservedRegs(const MachineFunction &MF) const override;
36
37 bool requiresRegisterScavenging(const MachineFunction &MF) const override;
38
39 bool useFPForScavengingIndex(const MachineFunction &MF) const override;
40
42 unsigned FIOperandNum,
43 RegScavenger *RS = nullptr) const override;
44
46 CallingConv::ID CC) const override;
47
48 // Debug information queries.
49 Register getFrameRegister(const MachineFunction &MF) const override;
50
51 //! Return whether to emit frame moves
52 static bool needsFrameMoves(const MachineFunction &MF);
53};
54
55} // end namespace llvm
56
57#endif // LLVM_LIB_TARGET_ARC_ARCREGISTERINFO_H
uint64_t IntrinsicInst * II
RISCVCC::CondCode CC
MachineInstrBundleIterator< MachineInstr > iterator
Wrapper class representing virtual and physical registers.
Definition Register.h:20
unsigned ID
LLVM IR allows to use arbitrary numbers as calling convention identifiers.
Definition CallingConv.h:24
This is an optimization pass for GlobalISel generic memory operations.
uint16_t MCPhysReg
An unsigned integer type large enough to represent all physical registers, but not necessarily virtua...
Definition MCRegister.h:21
const MCPhysReg * getCalleeSavedRegs(const MachineFunction *MF) const override
Code Generation virtual methods...
BitVector getReservedRegs(const MachineFunction &MF) const override
const uint32_t * getCallPreservedMask(const MachineFunction &MF, CallingConv::ID CC) const override
bool useFPForScavengingIndex(const MachineFunction &MF) const override
const ARCSubtarget & ST
Register getFrameRegister(const MachineFunction &MF) const override
bool eliminateFrameIndex(MachineBasicBlock::iterator II, int SPAdj, unsigned FIOperandNum, RegScavenger *RS=nullptr) const override
static bool needsFrameMoves(const MachineFunction &MF)
Return whether to emit frame moves.
ARCRegisterInfo(const ARCSubtarget &)
bool requiresRegisterScavenging(const MachineFunction &MF) const override