blob: 738b48c7fbc11759c87bef1631326f25adea95ee [file] [log] [blame]
Akira Hatanaka4552c9a2011-04-15 21:51:11 +00001//===-- Mips.h - Top-level interface for Mips representation ----*- C++ -*-===//
Bruno Cardoso Lopes972f5892007-06-06 07:42:06 +00002//
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//
Akira Hatanaka4552c9a2011-04-15 21:51:11 +00008//===----------------------------------------------------------------------===//
Bruno Cardoso Lopes972f5892007-06-06 07:42:06 +00009//
Bruno Cardoso Lopes81092dc2011-03-04 17:51:39 +000010// This file contains the entry points for global functions defined in
Bruno Cardoso Lopes972f5892007-06-06 07:42:06 +000011// the LLVM Mips back-end.
12//
Akira Hatanaka4552c9a2011-04-15 21:51:11 +000013//===----------------------------------------------------------------------===//
Bruno Cardoso Lopes972f5892007-06-06 07:42:06 +000014
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);
Akira Hatanaka99a2e982011-04-15 19:52:08 +000028 FunctionPass *createMipsExpandPseudoPass(MipsTargetMachine &TM);
Akira Hatanaka6b7588e2011-05-04 17:54:27 +000029 FunctionPass *createMipsEmitGPRestorePass(MipsTargetMachine &TM);
Daniel Dunbar4cb1e132009-07-18 23:03:22 +000030
31 extern Target TheMipsTarget;
32 extern Target TheMipselTarget;
33
Bruno Cardoso Lopes972f5892007-06-06 07:42:06 +000034} // end namespace llvm;
35
36// Defines symbolic names for Mips registers. This defines a mapping from
37// register name to register number.
Evan Cheng73f50d92011-06-27 18:32:37 +000038#define GET_REGINFO_ENUM
39#include "MipsGenRegisterInfo.inc"
Bruno Cardoso Lopes972f5892007-06-06 07:42:06 +000040
41// Defines symbolic names for the Mips instructions.
Evan Cheng22fee2d2011-06-28 20:07:07 +000042#define GET_INSTRINFO_ENUM
43#include "MipsGenInstrInfo.inc"
Bruno Cardoso Lopes972f5892007-06-06 07:42:06 +000044
45#endif