Path: blob/main/contrib/llvm-project/llvm/lib/Target/ARC/ARCRegisterInfo.h
96353 views
//===- ARCRegisterInfo.h - ARC Register Information Impl --------*- C++ -*-===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//7//8// This file contains the ARC implementation of the MRegisterInfo class.9//10//===----------------------------------------------------------------------===//1112#ifndef LLVM_LIB_TARGET_ARC_ARCREGISTERINFO_H13#define LLVM_LIB_TARGET_ARC_ARCREGISTERINFO_H1415#include "llvm/CodeGen/TargetRegisterInfo.h"1617#define GET_REGINFO_HEADER18#include "ARCGenRegisterInfo.inc"1920namespace llvm {2122class TargetInstrInfo;23class ARCSubtarget;2425struct ARCRegisterInfo : public ARCGenRegisterInfo {26const ARCSubtarget &ST;2728public:29ARCRegisterInfo(const ARCSubtarget &);3031/// Code Generation virtual methods...3233const MCPhysReg *getCalleeSavedRegs(const MachineFunction *MF) const override;3435BitVector getReservedRegs(const MachineFunction &MF) const override;3637bool requiresRegisterScavenging(const MachineFunction &MF) const override;3839bool useFPForScavengingIndex(const MachineFunction &MF) const override;4041bool eliminateFrameIndex(MachineBasicBlock::iterator II, int SPAdj,42unsigned FIOperandNum,43RegScavenger *RS = nullptr) const override;4445const uint32_t *getCallPreservedMask(const MachineFunction &MF,46CallingConv::ID CC) const override;4748// Debug information queries.49Register getFrameRegister(const MachineFunction &MF) const override;5051//! Return whether to emit frame moves52static bool needsFrameMoves(const MachineFunction &MF);53};5455} // end namespace llvm5657#endif // LLVM_LIB_TARGET_ARC_ARCREGISTERINFO_H585960