Path: blob/main/contrib/llvm-project/llvm/lib/Target/CSKY/CSKYRegisterInfo.h
96353 views
//===-- CSKYRegisterInfo.h - CSKY 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 CSKY implementation of the TargetRegisterInfo class.9//10//===----------------------------------------------------------------------===//1112#ifndef LLVM_LIB_TARGET_CSKY_CSKYREGISTERINFO_H13#define LLVM_LIB_TARGET_CSKY_CSKYREGISTERINFO_H1415#include "llvm/CodeGen/TargetRegisterInfo.h"1617#define GET_REGINFO_HEADER18#include "CSKYGenRegisterInfo.inc"1920namespace llvm {21class CSKYInstrInfo;2223class CSKYRegisterInfo : public CSKYGenRegisterInfo {24public:25CSKYRegisterInfo();2627const uint32_t *getCallPreservedMask(const MachineFunction &MF,28CallingConv::ID id) const override;29const uint32_t *getNoPreservedMask() const override;3031BitVector getReservedRegs(const MachineFunction &MF) const override;3233Register getFrameRegister(const MachineFunction &MF) const override;3435const MCPhysReg *getCalleeSavedRegs(const MachineFunction *MF) const override;3637bool eliminateFrameIndex(MachineBasicBlock::iterator MI, int SPAdj,38unsigned FIOperandNum,39RegScavenger *RS) const override;4041bool requiresFrameIndexScavenging(const MachineFunction &MF) const override {42return true;43}4445bool requiresRegisterScavenging(const MachineFunction &MF) const override {46return true;47}4849bool useFPForScavengingIndex(const MachineFunction &MF) const override {50return false;51}52};5354} // namespace llvm5556#endif // LLVM_LIB_TARGET_CSKY_CSKYREGISTERINFO_H575859