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 "PowerPCFrameInfo.h"
18 #include "llvm/Target/TargetMachine.h"
19 #include "llvm/PassManager.h"
24 class IntrinsicLowering;
26 class PowerPCTargetMachine : public TargetMachine {
27 PowerPCFrameInfo FrameInfo;
30 PowerPCTargetMachine(const std::string &name, IntrinsicLowering *IL,
31 const TargetData &TD, const PowerPCFrameInfo &TFI);
33 virtual const TargetFrameInfo *getFrameInfo() const { return &FrameInfo; }
35 virtual bool addPassesToEmitAssembly(PassManager &PM, std::ostream &Out);
38 } // end namespace llvm