2002-12-28 20:32:54 +00:00
|
|
|
//===- X86RegisterInfo.h - X86 Register Information Impl --------*- C++ -*-===//
|
2002-10-25 22:55:53 +00:00
|
|
|
//
|
|
|
|
// This file contains the X86 implementation of the MRegisterInfo class.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef X86REGISTERINFO_H
|
|
|
|
#define X86REGISTERINFO_H
|
|
|
|
|
|
|
|
#include "llvm/Target/MRegisterInfo.h"
|
|
|
|
|
2002-11-20 18:59:43 +00:00
|
|
|
class Type;
|
|
|
|
|
2002-10-25 22:55:53 +00:00
|
|
|
struct X86RegisterInfo : public MRegisterInfo {
|
|
|
|
X86RegisterInfo();
|
|
|
|
|
2002-12-28 20:32:54 +00:00
|
|
|
const unsigned* getCalleeSaveRegs() const;
|
2002-12-25 05:06:43 +00:00
|
|
|
|
2002-12-28 20:32:54 +00:00
|
|
|
const TargetRegisterClass* getRegClassForType(const Type* Ty) const;
|
2002-12-25 05:06:43 +00:00
|
|
|
|
2002-12-28 20:32:54 +00:00
|
|
|
/// Code Generation virtual methods...
|
|
|
|
void storeRegToStackSlot(MachineBasicBlock &MBB,
|
|
|
|
MachineBasicBlock::iterator &MBBI,
|
|
|
|
unsigned SrcReg, int FrameIndex,
|
|
|
|
const TargetRegisterClass *RC) const;
|
|
|
|
|
|
|
|
void loadRegFromStackSlot(MachineBasicBlock &MBB,
|
|
|
|
MachineBasicBlock::iterator &MBBI,
|
|
|
|
unsigned DestReg, int FrameIndex,
|
|
|
|
const TargetRegisterClass *RC) const;
|
|
|
|
|
|
|
|
void copyRegToReg(MachineBasicBlock &MBB, MachineBasicBlock::iterator &MBBI,
|
2002-12-25 05:06:43 +00:00
|
|
|
unsigned DestReg, unsigned SrcReg,
|
|
|
|
const TargetRegisterClass *RC) const;
|
|
|
|
|
2002-12-28 20:32:54 +00:00
|
|
|
void eliminateCallFramePseudoInstr(MachineFunction &MF,
|
|
|
|
MachineBasicBlock &MBB,
|
|
|
|
MachineBasicBlock::iterator &I) const;
|
2002-12-13 09:54:12 +00:00
|
|
|
|
2002-12-28 20:32:54 +00:00
|
|
|
void eliminateFrameIndex(MachineFunction &MF,
|
|
|
|
MachineBasicBlock::iterator &II) const;
|
2002-11-20 18:59:43 +00:00
|
|
|
|
2002-12-28 20:32:54 +00:00
|
|
|
void processFunctionBeforeFrameFinalized(MachineFunction &MF) const;
|
2002-12-03 23:11:21 +00:00
|
|
|
|
2002-12-28 20:32:54 +00:00
|
|
|
void emitPrologue(MachineFunction &MF) const;
|
|
|
|
void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const;
|
2002-10-25 22:55:53 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|