Implement the TargetFrameInfo interface

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5189 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2002-12-28 20:33:52 +00:00
parent d282cfef61
commit fde4b51baa

View File

@ -9,21 +9,24 @@
#include "llvm/Target/TargetMachine.h" #include "llvm/Target/TargetMachine.h"
#include "X86InstrInfo.h" #include "X86InstrInfo.h"
#include "llvm/Target/MachineFrameInfo.h"
class X86TargetMachine : public TargetMachine { class X86TargetMachine : public TargetMachine {
X86InstrInfo instrInfo; X86InstrInfo InstrInfo;
TargetFrameInfo FrameInfo;
public: public:
X86TargetMachine(unsigned Configuration); X86TargetMachine(unsigned Configuration);
virtual const X86InstrInfo &getInstrInfo() const { return instrInfo; } virtual const X86InstrInfo &getInstrInfo() const { return InstrInfo; }
virtual const TargetFrameInfo &getFrameInfo() const { return FrameInfo; }
virtual const MRegisterInfo *getRegisterInfo() const {
return &InstrInfo.getRegisterInfo();
}
virtual const MachineSchedInfo &getSchedInfo() const { abort(); } virtual const MachineSchedInfo &getSchedInfo() const { abort(); }
virtual const MachineRegInfo &getRegInfo() const { abort(); } virtual const MachineRegInfo &getRegInfo() const { abort(); }
virtual const MachineFrameInfo &getFrameInfo() const { abort(); }
virtual const MachineCacheInfo &getCacheInfo() const { abort(); } virtual const MachineCacheInfo &getCacheInfo() const { abort(); }
virtual const MachineOptInfo &getOptInfo() const { abort(); } virtual const MachineOptInfo &getOptInfo() const { abort(); }
virtual const MRegisterInfo *getRegisterInfo() const {
return &instrInfo.getRegisterInfo();
}
/// addPassesToJITCompile - Add passes to the specified pass manager to /// addPassesToJITCompile - Add passes to the specified pass manager to
/// implement a fast dynamic compiler for this target. Return true if this is /// implement a fast dynamic compiler for this target. Return true if this is