Alex Bradbury | 6b2cca7 | 2016-11-01 23:47:30 +0000 | [diff] [blame] | 1 | //===-- RISCVMCTargetDesc.h - RISCV Target Descriptions ---------*- 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 provides RISCV specific target descriptions. |
| 11 | // |
| 12 | //===----------------------------------------------------------------------===// |
| 13 | |
| 14 | #ifndef LLVM_LIB_TARGET_RISCV_MCTARGETDESC_RISCVMCTARGETDESC_H |
| 15 | #define LLVM_LIB_TARGET_RISCV_MCTARGETDESC_RISCVMCTARGETDESC_H |
| 16 | |
Chandler Carruth | 6bda14b | 2017-06-06 11:49:48 +0000 | [diff] [blame] | 17 | #include "llvm/Config/config.h" |
Alex Bradbury | 6b2cca7 | 2016-11-01 23:47:30 +0000 | [diff] [blame] | 18 | #include "llvm/MC/MCTargetOptions.h" |
| 19 | #include "llvm/Support/DataTypes.h" |
Alex Bradbury | 5c1eef4 | 2017-10-11 12:09:06 +0000 | [diff] [blame] | 20 | #include <memory> |
Alex Bradbury | 6b2cca7 | 2016-11-01 23:47:30 +0000 | [diff] [blame] | 21 | |
| 22 | namespace llvm { |
| 23 | class MCAsmBackend; |
| 24 | class MCCodeEmitter; |
| 25 | class MCContext; |
| 26 | class MCInstrInfo; |
| 27 | class MCObjectWriter; |
| 28 | class MCRegisterInfo; |
| 29 | class MCSubtargetInfo; |
| 30 | class StringRef; |
| 31 | class Target; |
| 32 | class Triple; |
| 33 | class raw_ostream; |
| 34 | class raw_pwrite_stream; |
| 35 | |
| 36 | Target &getTheRISCV32Target(); |
| 37 | Target &getTheRISCV64Target(); |
| 38 | |
| 39 | MCCodeEmitter *createRISCVMCCodeEmitter(const MCInstrInfo &MCII, |
| 40 | const MCRegisterInfo &MRI, |
| 41 | MCContext &Ctx); |
| 42 | |
Alex Bradbury | b22f751 | 2018-01-03 08:53:05 +0000 | [diff] [blame] | 43 | MCAsmBackend *createRISCVAsmBackend(const Target &T, const MCSubtargetInfo &STI, |
| 44 | const MCRegisterInfo &MRI, |
Alex Bradbury | 6b2cca7 | 2016-11-01 23:47:30 +0000 | [diff] [blame] | 45 | const MCTargetOptions &Options); |
| 46 | |
Alex Bradbury | 5c1eef4 | 2017-10-11 12:09:06 +0000 | [diff] [blame] | 47 | std::unique_ptr<MCObjectWriter> |
| 48 | createRISCVELFObjectWriter(raw_pwrite_stream &OS, uint8_t OSABI, bool Is64Bit); |
Alex Bradbury | 6b2cca7 | 2016-11-01 23:47:30 +0000 | [diff] [blame] | 49 | } |
| 50 | |
| 51 | // Defines symbolic names for RISC-V registers. |
| 52 | #define GET_REGINFO_ENUM |
| 53 | #include "RISCVGenRegisterInfo.inc" |
| 54 | |
| 55 | // Defines symbolic names for RISC-V instructions. |
| 56 | #define GET_INSTRINFO_ENUM |
| 57 | #include "RISCVGenInstrInfo.inc" |
| 58 | |
Alex Bradbury | 8ab4a96 | 2017-09-17 14:36:28 +0000 | [diff] [blame] | 59 | #define GET_SUBTARGETINFO_ENUM |
| 60 | #include "RISCVGenSubtargetInfo.inc" |
| 61 | |
Alex Bradbury | 6b2cca7 | 2016-11-01 23:47:30 +0000 | [diff] [blame] | 62 | #endif |