mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
a1d10f171e
This patch includes all missing functionality needed to provide first compilation of a simple program that just returns from a function. I've added a test case that checks for "ret" instruction printed in assembly output. Patch by Andrei Grischenko (andrei.l.grischenko@intel.com) Differential revision: https://reviews.llvm.org/D39688 llvm-svn: 320035
36 lines
1.1 KiB
C++
36 lines
1.1 KiB
C++
//===-- Nios2.h - Top-level interface for Nios2 representation --*- 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 Nios2 back-end.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef LLVM_LIB_TARGET_NIOS2_NIOS2_H
|
|
#define LLVM_LIB_TARGET_NIOS2_NIOS2_H
|
|
|
|
#include "MCTargetDesc/Nios2MCTargetDesc.h"
|
|
#include "llvm/Target/TargetMachine.h"
|
|
|
|
namespace llvm {
|
|
class FunctionPass;
|
|
class formatted_raw_ostream;
|
|
class Nios2TargetMachine;
|
|
class AsmPrinter;
|
|
class MachineInstr;
|
|
class MCInst;
|
|
|
|
FunctionPass *createNios2ISelDag(Nios2TargetMachine &TM,
|
|
CodeGenOpt::Level OptLevel);
|
|
void LowerNios2MachineInstToMCInst(const MachineInstr *MI, MCInst &OutMI,
|
|
AsmPrinter &AP);
|
|
} // namespace llvm
|
|
|
|
#endif
|