2004-02-25 18:44:15 +00:00
|
|
|
//===-- SparcV9TargetMachine.h - Define TargetMachine for SparcV9 ---*- C++ -*-===//
|
2003-12-17 22:04:00 +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.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
2003-12-28 09:46:33 +00:00
|
|
|
// This file declares the top-level UltraSPARC target machine.
|
2003-12-17 22:04:00 +00:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef SPARC_TARGETMACHINE_H
|
|
|
|
#define SPARC_TARGETMACHINE_H
|
|
|
|
|
|
|
|
#include "llvm/Target/TargetFrameInfo.h"
|
|
|
|
#include "llvm/Target/TargetMachine.h"
|
2004-02-25 18:44:15 +00:00
|
|
|
#include "SparcV9InstrInfo.h"
|
|
|
|
#include "SparcV9Internals.h"
|
|
|
|
#include "SparcV9RegInfo.h"
|
|
|
|
#include "SparcV9FrameInfo.h"
|
|
|
|
#include "SparcV9JITInfo.h"
|
2003-12-17 22:04:00 +00:00
|
|
|
|
|
|
|
namespace llvm {
|
2003-12-28 09:46:33 +00:00
|
|
|
class PassManager;
|
2003-12-17 22:04:00 +00:00
|
|
|
|
2004-02-25 18:44:15 +00:00
|
|
|
class SparcV9TargetMachine : public TargetMachine {
|
|
|
|
SparcV9InstrInfo instrInfo;
|
|
|
|
SparcV9SchedInfo schedInfo;
|
|
|
|
SparcV9RegInfo regInfo;
|
|
|
|
SparcV9FrameInfo frameInfo;
|
|
|
|
SparcV9JITInfo jitInfo;
|
2003-12-17 22:04:00 +00:00
|
|
|
public:
|
2004-02-25 18:44:15 +00:00
|
|
|
SparcV9TargetMachine(IntrinsicLowering *IL);
|
2003-12-28 09:46:33 +00:00
|
|
|
|
2003-12-17 22:04:00 +00:00
|
|
|
virtual const TargetInstrInfo &getInstrInfo() const { return instrInfo; }
|
|
|
|
virtual const TargetSchedInfo &getSchedInfo() const { return schedInfo; }
|
|
|
|
virtual const TargetRegInfo &getRegInfo() const { return regInfo; }
|
|
|
|
virtual const TargetFrameInfo &getFrameInfo() const { return frameInfo; }
|
2003-12-20 01:22:19 +00:00
|
|
|
virtual TargetJITInfo *getJITInfo() { return &jitInfo; }
|
2003-12-17 22:04:00 +00:00
|
|
|
|
|
|
|
virtual bool addPassesToEmitAssembly(PassManager &PM, std::ostream &Out);
|
|
|
|
virtual bool addPassesToEmitMachineCode(FunctionPassManager &PM,
|
|
|
|
MachineCodeEmitter &MCE);
|
|
|
|
};
|
|
|
|
|
|
|
|
} // End llvm namespace
|
|
|
|
|
|
|
|
#endif
|