blob: 09a80729a567b8e4af1e51d4dff068c2cb19dbfb [file] [log] [blame]
Bruno Cardoso Lopes972f5892007-06-06 07:42:06 +00001//===-- Mips.h - Top-level interface for Mips representation ----*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
Chris Lattner4ee451d2007-12-29 20:36:04 +00005// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
Bruno Cardoso Lopes972f5892007-06-06 07:42:06 +00007//
8//===----------------------------------------------------------------------===//
9//
10// This file contains the entry points for global functions defined in
11// the LLVM Mips back-end.
12//
13//===----------------------------------------------------------------------===//
14
15#ifndef TARGET_MIPS_H
16#define TARGET_MIPS_H
17
Bill Wendling98a366d2009-04-29 23:29:43 +000018#include "llvm/Target/TargetMachine.h"
19
Bruno Cardoso Lopes972f5892007-06-06 07:42:06 +000020namespace llvm {
21 class MipsTargetMachine;
Bruno Cardoso Lopes972f5892007-06-06 07:42:06 +000022 class FunctionPass;
23 class MachineCodeEmitter;
David Greene71847812009-07-14 20:18:05 +000024 class formatted_raw_ostream;
Bruno Cardoso Lopes972f5892007-06-06 07:42:06 +000025
Bruno Cardoso Lopes250a1712007-08-18 02:05:24 +000026 FunctionPass *createMipsISelDag(MipsTargetMachine &TM);
27 FunctionPass *createMipsDelaySlotFillerPass(MipsTargetMachine &TM);
David Greene71847812009-07-14 20:18:05 +000028 FunctionPass *createMipsCodePrinterPass(formatted_raw_ostream &OS,
Daniel Dunbar51b198a2009-07-15 20:24:03 +000029 TargetMachine &TM,
Bill Wendling98a366d2009-04-29 23:29:43 +000030 bool Verbose);
Daniel Dunbar4cb1e132009-07-18 23:03:22 +000031
32 extern Target TheMipsTarget;
33 extern Target TheMipselTarget;
34
Bruno Cardoso Lopes972f5892007-06-06 07:42:06 +000035} // end namespace llvm;
36
37// Defines symbolic names for Mips registers. This defines a mapping from
38// register name to register number.
39#include "MipsGenRegisterNames.inc"
40
41// Defines symbolic names for the Mips instructions.
42#include "MipsGenInstrNames.inc"
43
44#endif