llvm-project/llvm/lib/Target/Foot/FootRegisterInfo.h
2025-10-21 18:25:06 -04:00

30 lines
931 B
C++

#ifndef LLVM_LIB_TARGET_FOOT_FOOTREGISTERINFO_H
#define LLVM_LIB_TARGET_FOOT_FOOTREGISTERINFO_H
#include "llvm/CodeGen/TargetRegisterInfo.h"
#define GET_REGINFO_HEADER
#include "FootGenRegisterInfo.inc"
namespace llvm {
struct FootRegisterInfo : public FootGenRegisterInfo {
FootRegisterInfo();
const MCPhysReg *getCalleeSavedRegs(const MachineFunction *MF) const override;
const uint32_t *getCallPreservedMask(const MachineFunction &MF,
CallingConv::ID CC) const override;
BitVector getReservedRegs(const MachineFunction &MF) const override;
bool eliminateFrameIndex(MachineBasicBlock::iterator MI, int SPAdj,
unsigned FIOperandNum,
RegScavenger *RS = nullptr) const override;
Register getFrameRegister(const MachineFunction &MF) const override;
};
} // namespace llvm
#endif // LLVM_LIB_TARGET_FOOT_FOOTREGISTERINFO_H