2004-02-25 19:28:19 +00:00
|
|
|
//===-- SparcV8TargetMachine.h - Define TargetMachine for SparcV8 -*- C++ -*-=//
|
2005-04-21 23:30:14 +00:00
|
|
|
//
|
2004-02-25 19:28:19 +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-02-25 19:28:19 +00:00
|
|
|
//===----------------------------------------------------------------------===//
|
2005-04-21 23:30:14 +00:00
|
|
|
//
|
2004-02-25 19:28:19 +00:00
|
|
|
// This file declares the SparcV8 specific subclass of TargetMachine.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef SPARCV8TARGETMACHINE_H
|
|
|
|
#define SPARCV8TARGETMACHINE_H
|
|
|
|
|
|
|
|
#include "llvm/Target/TargetMachine.h"
|
|
|
|
#include "llvm/Target/TargetFrameInfo.h"
|
|
|
|
#include "llvm/PassManager.h"
|
|
|
|
#include "SparcV8InstrInfo.h"
|
|
|
|
|
|
|
|
namespace llvm {
|
|
|
|
|
|
|
|
class IntrinsicLowering;
|
2004-10-09 05:57:01 +00:00
|
|
|
class Module;
|
2004-02-25 19:28:19 +00:00
|
|
|
|
|
|
|
class SparcV8TargetMachine : public TargetMachine {
|
|
|
|
SparcV8InstrInfo InstrInfo;
|
|
|
|
TargetFrameInfo FrameInfo;
|
|
|
|
public:
|
2005-09-01 21:38:21 +00:00
|
|
|
SparcV8TargetMachine(const Module &M, IntrinsicLowering *IL,
|
|
|
|
const std::string &FS);
|
2004-02-25 19:28:19 +00:00
|
|
|
|
2004-06-02 05:47:26 +00:00
|
|
|
virtual const SparcV8InstrInfo *getInstrInfo() const { return &InstrInfo; }
|
|
|
|
virtual const TargetFrameInfo *getFrameInfo() const { return &FrameInfo; }
|
2004-02-25 19:28:19 +00:00
|
|
|
virtual const MRegisterInfo *getRegisterInfo() const {
|
|
|
|
return &InstrInfo.getRegisterInfo();
|
|
|
|
}
|
|
|
|
|
2004-10-09 05:57:01 +00:00
|
|
|
static unsigned getModuleMatchQuality(const Module &M);
|
2005-04-21 23:30:14 +00:00
|
|
|
|
2005-06-25 02:48:37 +00:00
|
|
|
virtual bool addPassesToEmitFile(PassManager &PM, std::ostream &Out,
|
2005-11-08 02:11:51 +00:00
|
|
|
CodeGenFileType FileType, bool Fast);
|
2004-02-25 19:28:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // end namespace llvm
|
|
|
|
|
|
|
|
#endif
|