2004-06-21 16:55:25 +00:00
|
|
|
//===-- PowerPCTargetMachine.h - Define TargetMachine for PowerPC -*- C++ -*-=//
|
2005-04-21 23:30:14 +00:00
|
|
|
//
|
2004-06-21 16:55:25 +00: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.
|
2005-04-21 23:30:14 +00:00
|
|
|
//
|
2004-06-21 16:55:25 +00:00
|
|
|
//===----------------------------------------------------------------------===//
|
2005-04-21 23:30:14 +00:00
|
|
|
//
|
2004-08-17 05:08:44 +00:00
|
|
|
// This file declares the PowerPC-specific subclass of TargetMachine.
|
2004-06-21 16:55:25 +00:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2004-08-11 00:11:25 +00:00
|
|
|
#ifndef POWERPC_TARGETMACHINE_H
|
|
|
|
#define POWERPC_TARGETMACHINE_H
|
2004-06-21 16:55:25 +00:00
|
|
|
|
|
|
|
#include "llvm/Target/TargetMachine.h"
|
2005-08-04 07:12:09 +00:00
|
|
|
#include "llvm/Target/TargetFrameInfo.h"
|
2004-06-21 16:55:25 +00:00
|
|
|
#include "llvm/PassManager.h"
|
2005-08-04 07:12:09 +00:00
|
|
|
#include "PowerPCFrameInfo.h"
|
|
|
|
#include "PowerPCSubtarget.h"
|
2004-06-21 16:55:25 +00:00
|
|
|
|
|
|
|
namespace llvm {
|
|
|
|
|
2004-07-23 16:08:20 +00:00
|
|
|
class GlobalValue;
|
2004-06-21 16:55:25 +00:00
|
|
|
class IntrinsicLowering;
|
|
|
|
|
|
|
|
class PowerPCTargetMachine : public TargetMachine {
|
2005-08-04 07:12:09 +00:00
|
|
|
PowerPCFrameInfo FrameInfo;
|
|
|
|
PPCSubtarget Subtarget;
|
2004-08-11 00:11:25 +00:00
|
|
|
protected:
|
|
|
|
PowerPCTargetMachine(const std::string &name, IntrinsicLowering *IL,
|
2005-09-01 21:38:21 +00:00
|
|
|
const Module &M, const std::string &FS,
|
|
|
|
const TargetData &TD,
|
2005-08-04 07:12:09 +00:00
|
|
|
const PowerPCFrameInfo &TFI);
|
2004-06-21 16:55:25 +00:00
|
|
|
public:
|
|
|
|
virtual const TargetFrameInfo *getFrameInfo() const { return &FrameInfo; }
|
2005-08-04 07:12:09 +00:00
|
|
|
virtual const TargetSubtarget *getSubtargetImpl() const{ return &Subtarget; }
|
2004-08-11 07:40:04 +00:00
|
|
|
|
2005-06-25 02:48:37 +00:00
|
|
|
virtual bool addPassesToEmitFile(PassManager &PM, std::ostream &Out,
|
|
|
|
CodeGenFileType FileType);
|
2004-06-21 16:55:25 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // end namespace llvm
|
|
|
|
|
|
|
|
#endif
|