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 "PowerPCInstrInfo.h"
21 #include "PowerPCJITInfo.h"
27 class IntrinsicLowering;
29 class PowerPCTargetMachine : public TargetMachine {
30 PowerPCInstrInfo InstrInfo;
31 TargetFrameInfo FrameInfo;
32 PowerPCJITInfo JITInfo;
35 PowerPCTargetMachine(const std::string &name, IntrinsicLowering *IL,
36 const TargetData &TD, const TargetFrameInfo &TFI,
37 const PowerPCJITInfo &TJI);
39 virtual const PowerPCInstrInfo *getInstrInfo() const { return &InstrInfo; }
40 virtual const TargetFrameInfo *getFrameInfo() const { return &FrameInfo; }
41 virtual const MRegisterInfo *getRegisterInfo() const {
42 return &InstrInfo.getRegisterInfo();
44 virtual TargetJITInfo *getJITInfo() {
48 static unsigned getJITMatchQuality();
51 } // end namespace llvm