[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;
|
2018-05-22 03:20:29 +08:00
|
|
|
class MCObjectTargetWriter;
|
2017-12-07 20:35:02 +08:00
|
|
|
class MCRegisterInfo;
|
2018-05-16 04:21:58 +08:00
|
|
|
class MCSubtargetInfo;
|
2017-12-07 20:35:02 +08:00
|
|
|
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();
|
|
|
|
|
2018-05-16 04:21:58 +08:00
|
|
|
MCAsmBackend *createNios2AsmBackend(const Target &T, const MCSubtargetInfo &STI,
|
|
|
|
const MCRegisterInfo &MRI,
|
2017-12-07 20:35:02 +08:00
|
|
|
const MCTargetOptions &Options);
|
|
|
|
|
2018-05-22 03:20:29 +08:00
|
|
|
std::unique_ptr<MCObjectTargetWriter> createNios2ELFObjectWriter(uint8_t OSABI);
|
2017-12-07 20:35:02 +08:00
|
|
|
|
[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
|