mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-17 08:57:31 +00:00
498231bc60
only concrete implementation. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13977 91177308-0d34-0410-b5e6-96231b3b80d8
54 lines
1.8 KiB
C++
54 lines
1.8 KiB
C++
//===-- SparcV9TargetMachine.h - Define TargetMachine for SparcV9 -*- 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 top-level SparcV9 target machine.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef SPARCV9TARGETMACHINE_H
|
|
#define SPARCV9TARGETMACHINE_H
|
|
|
|
#include "llvm/Target/TargetFrameInfo.h"
|
|
#include "llvm/Target/TargetMachine.h"
|
|
#include "SparcV9InstrInfo.h"
|
|
#include "SparcV9Internals.h"
|
|
#include "SparcV9RegInfo.h"
|
|
#include "SparcV9FrameInfo.h"
|
|
#include "SparcV9JITInfo.h"
|
|
|
|
namespace llvm {
|
|
class PassManager;
|
|
|
|
class SparcV9TargetMachine : public TargetMachine {
|
|
SparcV9InstrInfo instrInfo;
|
|
SparcV9SchedInfo schedInfo;
|
|
SparcV9RegInfo regInfo;
|
|
SparcV9FrameInfo frameInfo;
|
|
SparcV9JITInfo jitInfo;
|
|
public:
|
|
SparcV9TargetMachine(IntrinsicLowering *IL);
|
|
|
|
virtual const TargetInstrInfo *getInstrInfo() const { return &instrInfo; }
|
|
virtual const TargetSchedInfo *getSchedInfo() const { return &schedInfo; }
|
|
virtual const SparcV9RegInfo *getRegInfo() const { return ®Info; }
|
|
virtual const TargetFrameInfo *getFrameInfo() const { return &frameInfo; }
|
|
virtual TargetJITInfo *getJITInfo() { return &jitInfo; }
|
|
virtual const MRegisterInfo *getRegisterInfo() const {
|
|
return &instrInfo.getRegisterInfo();
|
|
}
|
|
|
|
virtual bool addPassesToEmitAssembly(PassManager &PM, std::ostream &Out);
|
|
virtual bool addPassesToEmitMachineCode(FunctionPassManager &PM,
|
|
MachineCodeEmitter &MCE);
|
|
};
|
|
|
|
} // End llvm namespace
|
|
|
|
#endif
|