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