2004-08-17 06:57:37 +02:00
|
|
|
//===-- PPC64TargetMachine.h - Define TargetMachine for PowerPC64 -*- C++ -*-=//
|
2004-08-11 02:10:41 +02:00
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file was developed by the LLVM research group and is distributed under
|
|
|
|
// the University of Illinois Open Source License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
2004-08-17 06:57:37 +02:00
|
|
|
// This file declares the PowerPC specific subclass of TargetMachine.
|
2004-08-11 02:10:41 +02:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2004-08-17 06:57:37 +02:00
|
|
|
#ifndef POWERPC64_TARGETMACHINE_H
|
|
|
|
#define POWERPC64_TARGETMACHINE_H
|
2004-08-11 02:10:41 +02:00
|
|
|
|
|
|
|
#include "PowerPCTargetMachine.h"
|
2004-08-17 06:57:37 +02:00
|
|
|
#include "PPC64InstrInfo.h"
|
|
|
|
#include "llvm/PassManager.h"
|
2004-08-11 02:10:41 +02:00
|
|
|
|
|
|
|
namespace llvm {
|
|
|
|
|
2004-08-17 06:57:37 +02:00
|
|
|
class IntrinsicLowering;
|
|
|
|
|
2004-08-11 02:10:41 +02:00
|
|
|
class PPC64TargetMachine : public PowerPCTargetMachine {
|
2004-08-17 06:57:37 +02:00
|
|
|
PPC64InstrInfo InstrInfo;
|
|
|
|
|
2004-08-11 02:10:41 +02:00
|
|
|
public:
|
|
|
|
PPC64TargetMachine(const Module &M, IntrinsicLowering *IL);
|
2004-08-17 06:57:37 +02:00
|
|
|
virtual const PPC64InstrInfo *getInstrInfo() const { return &InstrInfo; }
|
|
|
|
virtual const MRegisterInfo *getRegisterInfo() const {
|
|
|
|
return &InstrInfo.getRegisterInfo();
|
|
|
|
}
|
2004-08-11 02:10:41 +02:00
|
|
|
|
|
|
|
static unsigned getModuleMatchQuality(const Module &M);
|
2004-08-17 06:57:37 +02:00
|
|
|
|
|
|
|
bool addPassesToEmitMachineCode(FunctionPassManager &PM,
|
|
|
|
MachineCodeEmitter &MCE);
|
2004-08-11 02:10:41 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
} // end namespace llvm
|
|
|
|
|
|
|
|
#endif
|