Alex Bradbury | 8971842 | 2017-10-19 21:37:38 +0000 | [diff] [blame] | 1 | //===-- RISCV.h - Top-level interface for RISCV -----------------*- 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 the LLVM |
| 11 | // RISC-V back-end. |
| 12 | // |
| 13 | //===----------------------------------------------------------------------===// |
| 14 | |
| 15 | #ifndef LLVM_LIB_TARGET_RISCV_RISCV_H |
| 16 | #define LLVM_LIB_TARGET_RISCV_RISCV_H |
| 17 | |
Alex Bradbury | ec8aa91 | 2017-11-08 13:24:21 +0000 | [diff] [blame^] | 18 | #include "MCTargetDesc/RISCVBaseInfo.h" |
Alex Bradbury | 8971842 | 2017-10-19 21:37:38 +0000 | [diff] [blame] | 19 | |
| 20 | namespace llvm { |
| 21 | class RISCVTargetMachine; |
Alex Bradbury | ec8aa91 | 2017-11-08 13:24:21 +0000 | [diff] [blame^] | 22 | class AsmPrinter; |
| 23 | class FunctionPass; |
Alex Bradbury | 8971842 | 2017-10-19 21:37:38 +0000 | [diff] [blame] | 24 | class MCInst; |
Alex Bradbury | ec8aa91 | 2017-11-08 13:24:21 +0000 | [diff] [blame^] | 25 | class MCOperand; |
Alex Bradbury | 8971842 | 2017-10-19 21:37:38 +0000 | [diff] [blame] | 26 | class MachineInstr; |
Alex Bradbury | ec8aa91 | 2017-11-08 13:24:21 +0000 | [diff] [blame^] | 27 | class MachineOperand; |
Alex Bradbury | 8971842 | 2017-10-19 21:37:38 +0000 | [diff] [blame] | 28 | |
Alex Bradbury | ec8aa91 | 2017-11-08 13:24:21 +0000 | [diff] [blame^] | 29 | void LowerRISCVMachineInstrToMCInst(const MachineInstr *MI, MCInst &OutMI, |
| 30 | const AsmPrinter &AP); |
| 31 | bool LowerRISCVMachineOperandToMCOperand(const MachineOperand &MO, |
| 32 | MCOperand &MCOp, const AsmPrinter &AP); |
Alex Bradbury | 8971842 | 2017-10-19 21:37:38 +0000 | [diff] [blame] | 33 | |
| 34 | FunctionPass *createRISCVISelDag(RISCVTargetMachine &TM); |
| 35 | } |
| 36 | |
| 37 | #endif |