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"
25 class IntrinsicLowering;
27 class PowerPCTargetMachine : public TargetMachine {
28 PowerPCFrameInfo FrameInfo;
31 PowerPCTargetMachine(const std::string &name, IntrinsicLowering *IL,
32 const TargetData &TD, const PowerPCFrameInfo &TFI);
34 virtual const TargetFrameInfo *getFrameInfo() const { return &FrameInfo; }
36 virtual bool addPassesToEmitAssembly(PassManager &PM, std::ostream &Out);
38 // Two shared sets between the instruction selector and the printer allow for
39 // correct linkage on Darwin
40 std::set<GlobalValue*> CalledFunctions;
41 std::set<GlobalValue*> AddressTaken;
44 } // end namespace llvm