1 //===- X86RegisterInfo.h - X86 Register Information Impl --------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file was developed by the LLVM research group and is distributed under
6 // the University of Illinois Open Source License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file contains the X86 implementation of the MRegisterInfo class.
12 //===----------------------------------------------------------------------===//
14 #ifndef X86REGISTERINFO_H
15 #define X86REGISTERINFO_H
17 #include "llvm/Target/MRegisterInfo.h"
21 #include "X86GenRegisterInfo.h.inc"
25 struct X86RegisterInfo : public X86GenRegisterInfo {
27 const TargetRegisterClass* getRegClassForType(const Type* Ty) const;
29 /// Code Generation virtual methods...
30 int storeRegToStackSlot(MachineBasicBlock &MBB,
31 MachineBasicBlock::iterator &MBBI,
32 unsigned SrcReg, int FrameIndex,
33 const TargetRegisterClass *RC) const;
35 int loadRegFromStackSlot(MachineBasicBlock &MBB,
36 MachineBasicBlock::iterator &MBBI,
37 unsigned DestReg, int FrameIndex,
38 const TargetRegisterClass *RC) const;
40 int copyRegToReg(MachineBasicBlock &MBB, MachineBasicBlock::iterator &MBBI,
41 unsigned DestReg, unsigned SrcReg,
42 const TargetRegisterClass *RC) const;
44 int eliminateCallFramePseudoInstr(MachineFunction &MF,
45 MachineBasicBlock &MBB,
46 MachineBasicBlock::iterator &I) const;
48 int eliminateFrameIndex(MachineFunction &MF,
49 MachineBasicBlock::iterator &II) const;
51 int processFunctionBeforeFrameFinalized(MachineFunction &MF) const;
53 int emitPrologue(MachineFunction &MF) const;
54 int emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const;
57 } // End llvm namespace