blob: e9aff5b96be0ffcb3616741ac0c076b2de5a9185 [file] [log] [blame]
Wesley Pecka70f28c2010-02-23 19:15:24 +00001//===-- MBlaze.h - Top-level interface for MBlaze ---------------*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9//
10// This file contains the entry points for global functions defined in
11// the LLVM MBlaze back-end.
12//
13//===----------------------------------------------------------------------===//
14
15#ifndef TARGET_MBLAZE_H
16#define TARGET_MBLAZE_H
17
18#include "llvm/Target/TargetMachine.h"
19
20namespace llvm {
21 class MBlazeTargetMachine;
22 class FunctionPass;
23 class MachineCodeEmitter;
Wesley Peck4e9141f2010-10-21 03:57:26 +000024 class MCCodeEmitter;
25 class TargetAsmBackend;
Wesley Pecka70f28c2010-02-23 19:15:24 +000026 class formatted_raw_ostream;
27
Wesley Peck4e9141f2010-10-21 03:57:26 +000028 MCCodeEmitter *createMBlazeMCCodeEmitter(const Target &,
29 TargetMachine &TM,
30 MCContext &Ctx);
31
32 TargetAsmBackend *createMBlazeAsmBackend(const Target &, const std::string &);
33
Wesley Pecka70f28c2010-02-23 19:15:24 +000034 FunctionPass *createMBlazeISelDag(MBlazeTargetMachine &TM);
35 FunctionPass *createMBlazeDelaySlotFillerPass(MBlazeTargetMachine &TM);
36
37 extern Target TheMBlazeTarget;
38} // end namespace llvm;
39
40// Defines symbolic names for MBlaze registers. This defines a mapping from
41// register name to register number.
Evan Cheng73f50d92011-06-27 18:32:37 +000042#define GET_REGINFO_ENUM
43#include "MBlazeGenRegisterInfo.inc"
Wesley Pecka70f28c2010-02-23 19:15:24 +000044
45// Defines symbolic names for the MBlaze instructions.
Evan Cheng22fee2d2011-06-28 20:07:07 +000046#define GET_INSTRINFO_ENUM
47#include "MBlazeGenInstrInfo.inc"
Wesley Pecka70f28c2010-02-23 19:15:24 +000048
49#endif