LLVM API Documentation
00001 //===-- MipsSERegisterInfo.h - Mips32/64 Register Information ---*- C++ -*-===// 00002 // 00003 // The LLVM Compiler Infrastructure 00004 // 00005 // This file is distributed under the University of Illinois Open Source 00006 // License. See LICENSE.TXT for details. 00007 // 00008 //===----------------------------------------------------------------------===// 00009 // 00010 // This file contains the Mips32/64 implementation of the TargetRegisterInfo 00011 // class. 00012 // 00013 //===----------------------------------------------------------------------===// 00014 00015 #ifndef LLVM_LIB_TARGET_MIPS_MIPSSEREGISTERINFO_H 00016 #define LLVM_LIB_TARGET_MIPS_MIPSSEREGISTERINFO_H 00017 00018 #include "MipsRegisterInfo.h" 00019 00020 namespace llvm { 00021 class MipsSEInstrInfo; 00022 00023 class MipsSERegisterInfo : public MipsRegisterInfo { 00024 public: 00025 MipsSERegisterInfo(const MipsSubtarget &Subtarget); 00026 00027 bool requiresRegisterScavenging(const MachineFunction &MF) const override; 00028 00029 bool requiresFrameIndexScavenging(const MachineFunction &MF) const override; 00030 00031 const TargetRegisterClass *intRegClass(unsigned Size) const override; 00032 00033 private: 00034 void eliminateFI(MachineBasicBlock::iterator II, unsigned OpNo, 00035 int FrameIndex, uint64_t StackSize, 00036 int64_t SPOffset) const override; 00037 }; 00038 00039 } // end namespace llvm 00040 00041 #endif