[Nios2] Target registration
Reviewers: craig.topper, hfinkel, joerg, lattner, zvi
Reviewed By: craig.topper
Subscribers: oren_ben_simhon, igorb, belickim, tvvikram, mgorny, llvm-commits, pavel.v.chupin, DavidKreitzer
Differential Revision: https://reviews.llvm.org/D32669
Patch by AndreiGrischenko <andrei.l.grischenko@intel.com>
llvm-svn: 304144
2017-05-29 17:48:30 +08:00
|
|
|
//===-- Nios2MCTargetDesc.h - Nios2 Target Descriptions ---------*- C++ -*-===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// This file provides Nios2 specific target descriptions.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef LLVM_LIB_TARGET_NIOS2_MCTARGETDESC_NIOS2MCTARGETDESC_H
|
|
|
|
#define LLVM_LIB_TARGET_NIOS2_MCTARGETDESC_NIOS2MCTARGETDESC_H
|
|
|
|
|
2017-12-07 20:35:02 +08:00
|
|
|
#include <memory>
|
|
|
|
|
[Nios2] Target registration
Reviewers: craig.topper, hfinkel, joerg, lattner, zvi
Reviewed By: craig.topper
Subscribers: oren_ben_simhon, igorb, belickim, tvvikram, mgorny, llvm-commits, pavel.v.chupin, DavidKreitzer
Differential Revision: https://reviews.llvm.org/D32669
Patch by AndreiGrischenko <andrei.l.grischenko@intel.com>
llvm-svn: 304144
2017-05-29 17:48:30 +08:00
|
|
|
namespace llvm {
|
2017-12-07 20:35:02 +08:00
|
|
|
class MCAsmBackend;
|
|
|
|
class MCObjectWriter;
|
|
|
|
class MCRegisterInfo;
|
|
|
|
class MCTargetOptions;
|
[Nios2] Target registration
Reviewers: craig.topper, hfinkel, joerg, lattner, zvi
Reviewed By: craig.topper
Subscribers: oren_ben_simhon, igorb, belickim, tvvikram, mgorny, llvm-commits, pavel.v.chupin, DavidKreitzer
Differential Revision: https://reviews.llvm.org/D32669
Patch by AndreiGrischenko <andrei.l.grischenko@intel.com>
llvm-svn: 304144
2017-05-29 17:48:30 +08:00
|
|
|
class Target;
|
|
|
|
class Triple;
|
2017-12-07 20:35:02 +08:00
|
|
|
class StringRef;
|
|
|
|
class raw_pwrite_stream;
|
[Nios2] Target registration
Reviewers: craig.topper, hfinkel, joerg, lattner, zvi
Reviewed By: craig.topper
Subscribers: oren_ben_simhon, igorb, belickim, tvvikram, mgorny, llvm-commits, pavel.v.chupin, DavidKreitzer
Differential Revision: https://reviews.llvm.org/D32669
Patch by AndreiGrischenko <andrei.l.grischenko@intel.com>
llvm-svn: 304144
2017-05-29 17:48:30 +08:00
|
|
|
|
|
|
|
Target &getTheNios2Target();
|
|
|
|
|
2017-12-07 20:35:02 +08:00
|
|
|
MCAsmBackend *createNios2AsmBackend(const Target &T, const MCRegisterInfo &MRI,
|
|
|
|
const Triple &TT, StringRef CPU,
|
|
|
|
const MCTargetOptions &Options);
|
|
|
|
|
|
|
|
std::unique_ptr<MCObjectWriter>
|
|
|
|
createNios2ELFObjectWriter(raw_pwrite_stream &OS, uint8_t OSABI);
|
|
|
|
|
[Nios2] Target registration
Reviewers: craig.topper, hfinkel, joerg, lattner, zvi
Reviewed By: craig.topper
Subscribers: oren_ben_simhon, igorb, belickim, tvvikram, mgorny, llvm-commits, pavel.v.chupin, DavidKreitzer
Differential Revision: https://reviews.llvm.org/D32669
Patch by AndreiGrischenko <andrei.l.grischenko@intel.com>
llvm-svn: 304144
2017-05-29 17:48:30 +08:00
|
|
|
} // namespace llvm
|
|
|
|
|
|
|
|
// Defines symbolic names for Nios2 registers. This defines a mapping from
|
|
|
|
// register name to register number.
|
|
|
|
#define GET_REGINFO_ENUM
|
|
|
|
#include "Nios2GenRegisterInfo.inc"
|
|
|
|
|
|
|
|
// Defines symbolic names for the Nios2 instructions.
|
|
|
|
#define GET_INSTRINFO_ENUM
|
|
|
|
#include "Nios2GenInstrInfo.inc"
|
|
|
|
|
2017-09-19 19:54:29 +08:00
|
|
|
#define GET_SUBTARGETINFO_ENUM
|
|
|
|
#include "Nios2GenSubtargetInfo.inc"
|
|
|
|
|
[Nios2] Target registration
Reviewers: craig.topper, hfinkel, joerg, lattner, zvi
Reviewed By: craig.topper
Subscribers: oren_ben_simhon, igorb, belickim, tvvikram, mgorny, llvm-commits, pavel.v.chupin, DavidKreitzer
Differential Revision: https://reviews.llvm.org/D32669
Patch by AndreiGrischenko <andrei.l.grischenko@intel.com>
llvm-svn: 304144
2017-05-29 17:48:30 +08:00
|
|
|
#endif
|