1 //===-- Nios2.h - Top-level interface for Nios2 representation --*- 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 Nios2 back-end.
12 //
13 //===----------------------------------------------------------------------===//
14 
15 #ifndef LLVM_LIB_TARGET_NIOS2_NIOS2_H
16 #define LLVM_LIB_TARGET_NIOS2_NIOS2_H
17 
18 #include "MCTargetDesc/Nios2MCTargetDesc.h"
19 #include "llvm/Target/TargetMachine.h"
20 
21 namespace llvm {
22 class FunctionPass;
23 class formatted_raw_ostream;
24 class Nios2TargetMachine;
25 class AsmPrinter;
26 class MachineInstr;
27 class MCInst;
28 
29 FunctionPass *createNios2ISelDag(Nios2TargetMachine &TM,
30                                  CodeGenOpt::Level OptLevel);
31 void LowerNios2MachineInstToMCInst(const MachineInstr *MI, MCInst &OutMI,
32                                    AsmPrinter &AP);
33 } // namespace llvm
34 
35 #endif
36