mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-10-31 09:11:13 +00:00
f70e0c216c
implementation from the TargetMachine directly. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10636 91177308-0d34-0410-b5e6-96231b3b80d8
53 lines
1.8 KiB
C++
53 lines
1.8 KiB
C++
//===-- 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 top-level UltraSPARC target machine.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef SPARC_TARGETMACHINE_H
|
|
#define SPARC_TARGETMACHINE_H
|
|
|
|
#include "llvm/Target/TargetFrameInfo.h"
|
|
#include "llvm/Target/TargetMachine.h"
|
|
#include "SparcInstrInfo.h"
|
|
#include "SparcInternals.h"
|
|
#include "SparcRegInfo.h"
|
|
#include "SparcFrameInfo.h"
|
|
#include "SparcJITInfo.h"
|
|
|
|
namespace llvm {
|
|
class PassManager;
|
|
|
|
class SparcTargetMachine : public TargetMachine {
|
|
SparcInstrInfo instrInfo;
|
|
SparcSchedInfo schedInfo;
|
|
SparcRegInfo regInfo;
|
|
SparcFrameInfo frameInfo;
|
|
SparcCacheInfo cacheInfo;
|
|
SparcJITInfo jitInfo;
|
|
public:
|
|
SparcTargetMachine(IntrinsicLowering *IL);
|
|
|
|
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; }
|
|
virtual TargetJITInfo *getJITInfo() { return &jitInfo; }
|
|
|
|
virtual bool addPassesToEmitAssembly(PassManager &PM, std::ostream &Out);
|
|
virtual bool addPassesToEmitMachineCode(FunctionPassManager &PM,
|
|
MachineCodeEmitter &MCE);
|
|
};
|
|
|
|
} // End llvm namespace
|
|
|
|
#endif
|