2012-08-01 01:41:32 +02:00
|
|
|
//===-- Mips16RegisterInfo.h - Mips16 Register Information ------*- C++ -*-===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// This file contains the Mips16 implementation of the TargetRegisterInfo class.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2014-08-13 18:26:38 +02:00
|
|
|
#ifndef LLVM_LIB_TARGET_MIPS_MIPS16REGISTERINFO_H
|
|
|
|
#define LLVM_LIB_TARGET_MIPS_MIPS16REGISTERINFO_H
|
2012-08-01 01:41:32 +02:00
|
|
|
|
|
|
|
#include "MipsRegisterInfo.h"
|
|
|
|
|
|
|
|
namespace llvm {
|
2012-08-23 01:58:53 +02:00
|
|
|
class Mips16InstrInfo;
|
2012-08-01 01:41:32 +02:00
|
|
|
|
|
|
|
class Mips16RegisterInfo : public MipsRegisterInfo {
|
|
|
|
public:
|
2015-03-12 06:43:57 +01:00
|
|
|
Mips16RegisterInfo();
|
2012-08-01 01:41:32 +02:00
|
|
|
|
2014-04-29 09:58:02 +02:00
|
|
|
bool requiresRegisterScavenging(const MachineFunction &MF) const override;
|
2012-12-20 05:44:58 +01:00
|
|
|
|
2014-04-29 09:58:02 +02:00
|
|
|
bool requiresFrameIndexScavenging(const MachineFunction &MF) const override;
|
2012-12-20 05:44:58 +01:00
|
|
|
|
2014-04-29 09:58:02 +02:00
|
|
|
bool useFPForScavengingIndex(const MachineFunction &MF) const override;
|
2012-12-20 05:44:58 +01:00
|
|
|
|
|
|
|
bool saveScavengerRegister(MachineBasicBlock &MBB,
|
|
|
|
MachineBasicBlock::iterator I,
|
|
|
|
MachineBasicBlock::iterator &UseMI,
|
|
|
|
const TargetRegisterClass *RC,
|
2014-04-29 09:58:02 +02:00
|
|
|
unsigned Reg) const override;
|
2012-12-20 05:44:58 +01:00
|
|
|
|
2014-04-29 09:58:02 +02:00
|
|
|
const TargetRegisterClass *intRegClass(unsigned Size) const override;
|
2013-03-29 20:17:42 +01:00
|
|
|
|
2012-08-01 01:41:32 +02:00
|
|
|
private:
|
2014-04-29 09:58:02 +02:00
|
|
|
void eliminateFI(MachineBasicBlock::iterator II, unsigned OpNo,
|
|
|
|
int FrameIndex, uint64_t StackSize,
|
|
|
|
int64_t SPOffset) const override;
|
2012-08-01 01:41:32 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
} // end namespace llvm
|
|
|
|
|
|
|
|
#endif
|