2003-12-17 22:04:00 +00:00
|
|
|
//===-- SparcTargetMachine.h - Define TargetMachine for Sparc ---*- C++ -*-===//
|
|
|
|
//
|
|
|
|
// 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.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// This file declares the primary interface to machine description for the
|
|
|
|
// UltraSPARC.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef SPARC_TARGETMACHINE_H
|
|
|
|
#define SPARC_TARGETMACHINE_H
|
|
|
|
|
|
|
|
#include "llvm/PassManager.h"
|
|
|
|
#include "llvm/Target/TargetFrameInfo.h"
|
|
|
|
#include "llvm/Target/TargetMachine.h"
|
|
|
|
#include "SparcInstrInfo.h"
|
|
|
|
#include "SparcInternals.h"
|
|
|
|
#include "SparcRegInfo.h"
|
|
|
|
#include "SparcFrameInfo.h"
|
2003-12-20 01:22:19 +00:00
|
|
|
#include "SparcJITInfo.h"
|
2003-12-17 22:04:00 +00:00
|
|
|
|
|
|
|
namespace llvm {
|
|
|
|
|
|
|
|
class SparcTargetMachine : public TargetMachine {
|
|
|
|
SparcInstrInfo instrInfo;
|
|
|
|
SparcSchedInfo schedInfo;
|
|
|
|
SparcRegInfo regInfo;
|
|
|
|
SparcFrameInfo frameInfo;
|
|
|
|
SparcCacheInfo cacheInfo;
|
2003-12-20 01:22:19 +00:00
|
|
|
SparcJITInfo jitInfo;
|
2003-12-17 22:04:00 +00:00
|
|
|
public:
|
|
|
|
SparcTargetMachine();
|
|
|
|
|
|
|
|
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; }
|
|
|
|
virtual const TargetCacheInfo &getCacheInfo() const { return cacheInfo; }
|
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
|