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
|
|
|
|
2004-08-14 22:16:36 +00:00
|
|
|
#include "PowerPCFrameInfo.h"
|
2004-06-21 16:55:25 +00:00
|
|
|
#include "llvm/Target/TargetMachine.h"
|
|
|
|
#include "llvm/PassManager.h"
|
|
|
|
|
|
|
|
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 {
|
2004-08-14 22:16:36 +00:00
|
|
|
PowerPCFrameInfo FrameInfo;
|
2004-07-23 16:08:20 +00:00
|
|
|
|
2004-08-11 00:11:25 +00:00
|
|
|
protected:
|
|
|
|
PowerPCTargetMachine(const std::string &name, IntrinsicLowering *IL,
|
2004-11-23 05:55:38 +00:00
|
|
|
const TargetData &TD, const PowerPCFrameInfo &TFI);
|
2004-06-21 16:55:25 +00:00
|
|
|
public:
|
|
|
|
virtual const TargetFrameInfo *getFrameInfo() const { return &FrameInfo; }
|
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
|