2004-06-21 16:55:25 +00:00
|
|
|
//===- PowerPCJITInfo.h - PowerPC impl. of the JIT interface ----*- 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
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// This file contains the PowerPC implementation of the TargetJITInfo class.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2004-08-11 00:11:25 +00:00
|
|
|
#ifndef POWERPC_JITINFO_H
|
|
|
|
#define POWERPC_JITINFO_H
|
2004-06-21 16:55:25 +00:00
|
|
|
|
|
|
|
#include "llvm/Target/TargetJITInfo.h"
|
|
|
|
|
|
|
|
namespace llvm {
|
|
|
|
class TargetMachine;
|
|
|
|
|
|
|
|
class PowerPCJITInfo : public TargetJITInfo {
|
2004-08-11 00:11:25 +00:00
|
|
|
protected:
|
2004-06-21 16:55:25 +00:00
|
|
|
TargetMachine &TM;
|
|
|
|
public:
|
2005-07-29 23:32:02 +00:00
|
|
|
PowerPCJITInfo(TargetMachine &tm) : TM(tm) {useGOT = 0;}
|
2004-06-21 16:55:25 +00:00
|
|
|
|
|
|
|
/// addPassesToJITCompile - Add passes to the specified pass manager to
|
|
|
|
/// implement a fast dynamic compiler for this target. Return true if this
|
|
|
|
/// is not supported for this target.
|
|
|
|
///
|
|
|
|
virtual void addPassesToJITCompile(FunctionPassManager &PM);
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|