blob: 863eb604f5331b7c24414b7a43689aca9b6aa8b0 [file] [log] [blame]
Chris Lattnerb4f68ed2002-10-29 22:37:54 +00001//===-- X86TargetMachine.h - Define TargetMachine for the X86 ---*- C++ -*-===//
2//
3// This file declares the X86 specific subclass of TargetMachine.
4//
5//===----------------------------------------------------------------------===//
6
7#ifndef X86TARGETMACHINE_H
8#define X86TARGETMACHINE_H
9
10#include "llvm/Target/TargetMachine.h"
11#include "X86InstrInfo.h"
12
13class X86TargetMachine : public TargetMachine {
14 X86InstrInfo instrInfo;
15public:
16 X86TargetMachine();
17
18 virtual const MachineInstrInfo &getInstrInfo() const { return instrInfo; }
19 virtual const MachineSchedInfo &getSchedInfo() const { abort(); }
20 virtual const MachineRegInfo &getRegInfo() const { abort(); }
21 virtual const MachineFrameInfo &getFrameInfo() const { abort(); }
22 virtual const MachineCacheInfo &getCacheInfo() const { abort(); }
23 virtual const MachineOptInfo &getOptInfo() const { abort(); }
24
25 /// addPassesToJITCompile - Add passes to the specified pass manager to
26 /// implement a fast dynamic compiler for this target. Return true if this is
27 /// not supported for this target.
28 ///
29 virtual bool addPassesToJITCompile(PassManager &PM);
30};
31
32#endif