1 //===-- PowerPCTargetMachine.h - Define TargetMachine for PowerPC -*- 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 PowerPC-specific subclass of TargetMachine.
12 //===----------------------------------------------------------------------===//
14 #ifndef POWERPC_TARGETMACHINE_H
15 #define POWERPC_TARGETMACHINE_H
17 #include "llvm/Target/TargetMachine.h"
18 #include "llvm/Target/TargetFrameInfo.h"
19 #include "llvm/PassManager.h"
20 #include "PowerPCFrameInfo.h"
21 #include "PowerPCSubtarget.h"
26 class IntrinsicLowering;
28 class PowerPCTargetMachine : public TargetMachine {
29 PowerPCFrameInfo FrameInfo;
30 PPCSubtarget Subtarget;
32 PowerPCTargetMachine(const std::string &name, IntrinsicLowering *IL,
33 const Module &M, const TargetData &TD,
34 const PowerPCFrameInfo &TFI);
36 virtual const TargetFrameInfo *getFrameInfo() const { return &FrameInfo; }
37 virtual const TargetSubtarget *getSubtargetImpl() const{ return &Subtarget; }
39 virtual bool addPassesToEmitFile(PassManager &PM, std::ostream &Out,
40 CodeGenFileType FileType);
43 } // end namespace llvm