2017-10-20 05:37:38 +08:00
|
|
|
//===-- RISCV.h - Top-level interface for RISCV -----------------*- 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
|
|
|
|
// RISC-V back-end.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef LLVM_LIB_TARGET_RISCV_RISCV_H
|
|
|
|
#define LLVM_LIB_TARGET_RISCV_RISCV_H
|
|
|
|
|
2017-11-08 21:24:21 +08:00
|
|
|
#include "MCTargetDesc/RISCVBaseInfo.h"
|
2017-10-20 05:37:38 +08:00
|
|
|
|
|
|
|
namespace llvm {
|
|
|
|
class RISCVTargetMachine;
|
2017-11-08 21:24:21 +08:00
|
|
|
class AsmPrinter;
|
|
|
|
class FunctionPass;
|
2017-10-20 05:37:38 +08:00
|
|
|
class MCInst;
|
2017-11-08 21:24:21 +08:00
|
|
|
class MCOperand;
|
2017-10-20 05:37:38 +08:00
|
|
|
class MachineInstr;
|
2017-11-08 21:24:21 +08:00
|
|
|
class MachineOperand;
|
2017-10-20 05:37:38 +08:00
|
|
|
|
2017-11-08 21:24:21 +08:00
|
|
|
void LowerRISCVMachineInstrToMCInst(const MachineInstr *MI, MCInst &OutMI,
|
|
|
|
const AsmPrinter &AP);
|
|
|
|
bool LowerRISCVMachineOperandToMCOperand(const MachineOperand &MO,
|
|
|
|
MCOperand &MCOp, const AsmPrinter &AP);
|
2017-10-20 05:37:38 +08:00
|
|
|
|
|
|
|
FunctionPass *createRISCVISelDag(RISCVTargetMachine &TM);
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|