mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-30 21:29:28 +00:00
and MCSubtargetInfo. - Added methods to update subtarget features (used when targets automatically detect subtarget features or switch modes). - Teach X86Subtarget to update MCSubtargetInfo features bits since the MCSubtargetInfo layer can be shared with other modules. - These fixes .code 16 / .code 32 support since mode switch is updated in MCSubtargetInfo so MC code emitter can do the right thing. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134884 91177308-0d34-0410-b5e6-96231b3b80d8
52 lines
1.6 KiB
C++
52 lines
1.6 KiB
C++
//===-- MBlaze.h - Top-level interface for MBlaze ---------------*- C++ -*-===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// This file contains the entry points for global functions defined in
|
|
// the LLVM MBlaze back-end.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef TARGET_MBLAZE_H
|
|
#define TARGET_MBLAZE_H
|
|
|
|
#include "llvm/Target/TargetMachine.h"
|
|
|
|
namespace llvm {
|
|
class MBlazeTargetMachine;
|
|
class FunctionPass;
|
|
class MachineCodeEmitter;
|
|
class MCCodeEmitter;
|
|
class MCInstrInfo;
|
|
class MCSubtargetInfo;
|
|
class TargetAsmBackend;
|
|
class formatted_raw_ostream;
|
|
|
|
MCCodeEmitter *createMBlazeMCCodeEmitter(const MCInstrInfo &MCII,
|
|
const MCSubtargetInfo &STI,
|
|
MCContext &Ctx);
|
|
|
|
TargetAsmBackend *createMBlazeAsmBackend(const Target &, const std::string &);
|
|
|
|
FunctionPass *createMBlazeISelDag(MBlazeTargetMachine &TM);
|
|
FunctionPass *createMBlazeDelaySlotFillerPass(MBlazeTargetMachine &TM);
|
|
|
|
extern Target TheMBlazeTarget;
|
|
} // end namespace llvm;
|
|
|
|
// Defines symbolic names for MBlaze registers. This defines a mapping from
|
|
// register name to register number.
|
|
#define GET_REGINFO_ENUM
|
|
#include "MBlazeGenRegisterInfo.inc"
|
|
|
|
// Defines symbolic names for the MBlaze instructions.
|
|
#define GET_INSTRINFO_ENUM
|
|
#include "MBlazeGenInstrInfo.inc"
|
|
|
|
#endif
|