2012-02-18 13:03:15 +01:00
|
|
|
//===-- SparcRegisterInfo.h - Sparc Register Information Impl ---*- C++ -*-===//
|
2006-02-05 06:50:24 +01:00
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
2007-12-29 21:36:04 +01:00
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
2006-02-05 06:50:24 +01:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
2008-02-10 19:45:23 +01:00
|
|
|
// This file contains the Sparc implementation of the TargetRegisterInfo class.
|
2006-02-05 06:50:24 +01:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2014-08-13 18:26:38 +02:00
|
|
|
#ifndef LLVM_LIB_TARGET_SPARC_SPARCREGISTERINFO_H
|
|
|
|
#define LLVM_LIB_TARGET_SPARC_SPARCREGISTERINFO_H
|
2006-02-05 06:50:24 +01:00
|
|
|
|
2008-02-10 19:45:23 +01:00
|
|
|
#include "llvm/Target/TargetRegisterInfo.h"
|
2011-06-27 20:32:37 +02:00
|
|
|
|
|
|
|
#define GET_REGINFO_HEADER
|
|
|
|
#include "SparcGenRegisterInfo.inc"
|
2006-02-05 06:50:24 +01:00
|
|
|
|
|
|
|
namespace llvm {
|
|
|
|
struct SparcRegisterInfo : public SparcGenRegisterInfo {
|
2015-03-12 06:55:26 +01:00
|
|
|
SparcRegisterInfo();
|
2006-02-05 06:50:24 +01:00
|
|
|
|
2010-11-15 01:06:54 +01:00
|
|
|
/// Code Generation virtual methods...
|
2015-03-11 22:41:28 +01:00
|
|
|
const MCPhysReg *getCalleeSavedRegs(const MachineFunction *MF) const override;
|
2015-03-11 23:42:13 +01:00
|
|
|
const uint32_t *getCallPreservedMask(const MachineFunction &MF,
|
|
|
|
CallingConv::ID CC) const override;
|
2006-05-18 02:12:58 +02:00
|
|
|
|
2013-09-05 07:32:16 +02:00
|
|
|
const uint32_t* getRTCallPreservedMask(CallingConv::ID CC) const;
|
|
|
|
|
2014-04-29 09:57:13 +02:00
|
|
|
BitVector getReservedRegs(const MachineFunction &MF) const override;
|
2007-02-19 22:49:54 +01:00
|
|
|
|
2013-04-02 06:08:54 +02:00
|
|
|
const TargetRegisterClass *getPointerRegClass(const MachineFunction &MF,
|
2014-04-29 09:57:13 +02:00
|
|
|
unsigned Kind) const override;
|
2013-04-02 06:08:54 +02:00
|
|
|
|
2010-08-27 01:32:16 +02:00
|
|
|
void eliminateFrameIndex(MachineBasicBlock::iterator II,
|
2013-01-31 21:02:54 +01:00
|
|
|
int SPAdj, unsigned FIOperandNum,
|
2014-04-29 09:57:13 +02:00
|
|
|
RegScavenger *RS = nullptr) const override;
|
2006-02-05 06:50:24 +01:00
|
|
|
|
2013-03-14 21:33:40 +01:00
|
|
|
void processFunctionBeforeFrameFinalized(MachineFunction &MF,
|
2014-04-28 06:05:08 +02:00
|
|
|
RegScavenger *RS = nullptr) const;
|
2006-02-05 06:50:24 +01:00
|
|
|
|
2006-03-28 15:48:33 +02:00
|
|
|
// Debug information queries.
|
2014-04-29 09:57:13 +02:00
|
|
|
unsigned getFrameRegister(const MachineFunction &MF) const override;
|
2006-02-05 06:50:24 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
} // end namespace llvm
|
|
|
|
|
|
|
|
#endif
|