1 //===-- SkeletonTargetMachine.h - TargetMachine for Skeleton ----*- 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 declares the Skeleton specific subclass of TargetMachine.
12 //===----------------------------------------------------------------------===//
14 #ifndef SKELETONTARGETMACHINE_H
15 #define SKELETONTARGETMACHINE_H
17 #include "llvm/Target/TargetMachine.h"
18 #include "llvm/Target/TargetFrameInfo.h"
19 #include "llvm/PassManager.h"
20 #include "SkeletonInstrInfo.h"
21 #include "SkeletonJITInfo.h"
24 class IntrinsicLowering;
26 class SkeletonTargetMachine : public TargetMachine {
27 SkeletonInstrInfo InstrInfo;
28 TargetFrameInfo FrameInfo;
29 SkeletonJITInfo JITInfo;
31 SkeletonTargetMachine(const Module &M, IntrinsicLowering *IL);
33 virtual const SkeletonInstrInfo *getInstrInfo() const { return &InstrInfo; }
34 virtual const TargetFrameInfo *getFrameInfo() const { return &FrameInfo; }
35 virtual const MRegisterInfo *getRegisterInfo() const {
36 return &InstrInfo.getRegisterInfo();
38 virtual TargetJITInfo *getJITInfo() {
42 virtual bool addPassesToEmitMachineCode(FunctionPassManager &PM,
43 MachineCodeEmitter &MCE);
45 virtual bool addPassesToEmitAssembly(PassManager &PM, std::ostream &Out);
48 } // end namespace llvm