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 "PowerPCJITInfo.h"
19 #include "llvm/Target/TargetMachine.h"
20 #include "llvm/PassManager.h"
26 class IntrinsicLowering;
28 class PowerPCTargetMachine : public TargetMachine {
29 PowerPCFrameInfo FrameInfo;
30 PowerPCJITInfo JITInfo;
33 PowerPCTargetMachine(const std::string &name, IntrinsicLowering *IL,
34 const TargetData &TD, const PowerPCFrameInfo &TFI,
35 const PowerPCJITInfo &TJI);
37 virtual const TargetFrameInfo *getFrameInfo() const { return &FrameInfo; }
38 virtual TargetJITInfo *getJITInfo() {
42 static unsigned getJITMatchQuality();
44 virtual bool addPassesToEmitAssembly(PassManager &PM, std::ostream &Out);
46 // Two shared sets between the instruction selector and the printer allow for
47 // correct linkage on Darwin
48 std::set<GlobalValue*> CalledFunctions;
49 std::set<GlobalValue*> AddressTaken;
52 } // end namespace llvm