2002-12-28 21:32:54 +01:00
|
|
|
//===- X86RegisterInfo.h - X86 Register Information Impl --------*- C++ -*-===//
|
2003-10-21 17:17:13 +02:00
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file was developed by the LLVM research group and is distributed under
|
|
|
|
// the University of Illinois Open Source License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
2002-10-26 00:55:53 +02: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 19:59:43 +01:00
|
|
|
class Type;
|
|
|
|
|
2003-08-03 17:48:14 +02:00
|
|
|
#include "X86GenRegisterInfo.h.inc"
|
2002-12-25 06:06:43 +01:00
|
|
|
|
2003-08-03 17:48:14 +02:00
|
|
|
struct X86RegisterInfo : public X86GenRegisterInfo {
|
|
|
|
X86RegisterInfo();
|
2002-12-28 21:32:54 +01:00
|
|
|
const TargetRegisterClass* getRegClassForType(const Type* Ty) const;
|
2002-12-25 06:06:43 +01:00
|
|
|
|
2002-12-28 21:32:54 +01:00
|
|
|
/// Code Generation virtual methods...
|
2003-11-04 23:57:09 +01:00
|
|
|
int storeRegToStackSlot(MachineBasicBlock &MBB,
|
|
|
|
MachineBasicBlock::iterator &MBBI,
|
|
|
|
unsigned SrcReg, int FrameIndex,
|
|
|
|
const TargetRegisterClass *RC) const;
|
|
|
|
|
|
|
|
int loadRegFromStackSlot(MachineBasicBlock &MBB,
|
|
|
|
MachineBasicBlock::iterator &MBBI,
|
|
|
|
unsigned DestReg, int FrameIndex,
|
|
|
|
const TargetRegisterClass *RC) const;
|
2002-12-28 21:32:54 +01:00
|
|
|
|
2003-11-04 23:57:09 +01:00
|
|
|
int copyRegToReg(MachineBasicBlock &MBB, MachineBasicBlock::iterator &MBBI,
|
2002-12-25 06:06:43 +01:00
|
|
|
unsigned DestReg, unsigned SrcReg,
|
|
|
|
const TargetRegisterClass *RC) const;
|
|
|
|
|
2003-11-04 23:57:09 +01:00
|
|
|
int eliminateCallFramePseudoInstr(MachineFunction &MF,
|
|
|
|
MachineBasicBlock &MBB,
|
|
|
|
MachineBasicBlock::iterator &I) const;
|
2002-12-13 10:54:12 +01:00
|
|
|
|
2003-11-04 23:57:09 +01:00
|
|
|
int eliminateFrameIndex(MachineFunction &MF,
|
|
|
|
MachineBasicBlock::iterator &II) const;
|
2002-11-20 19:59:43 +01:00
|
|
|
|
2003-11-04 23:57:09 +01:00
|
|
|
int processFunctionBeforeFrameFinalized(MachineFunction &MF) const;
|
2002-12-04 00:11:21 +01:00
|
|
|
|
2003-11-04 23:57:09 +01:00
|
|
|
int emitPrologue(MachineFunction &MF) const;
|
|
|
|
int emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const;
|
2002-10-26 00:55:53 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|