1*d415bd75Srobert //===-- LoongArch.h - Top-level interface for LoongArch ---------*- C++ -*-===// 2*d415bd75Srobert // 3*d415bd75Srobert // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4*d415bd75Srobert // See https://llvm.org/LICENSE.txt for license information. 5*d415bd75Srobert // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6*d415bd75Srobert // 7*d415bd75Srobert //===----------------------------------------------------------------------===// 8*d415bd75Srobert // 9*d415bd75Srobert // This file contains the entry points for global functions defined in the LLVM 10*d415bd75Srobert // LoongArch back-end. 11*d415bd75Srobert // 12*d415bd75Srobert //===----------------------------------------------------------------------===// 13*d415bd75Srobert 14*d415bd75Srobert #ifndef LLVM_LIB_TARGET_LOONGARCH_LOONGARCH_H 15*d415bd75Srobert #define LLVM_LIB_TARGET_LOONGARCH_LOONGARCH_H 16*d415bd75Srobert 17*d415bd75Srobert #include "MCTargetDesc/LoongArchBaseInfo.h" 18*d415bd75Srobert #include "llvm/Target/TargetMachine.h" 19*d415bd75Srobert 20*d415bd75Srobert namespace llvm { 21*d415bd75Srobert class AsmPrinter; 22*d415bd75Srobert class FunctionPass; 23*d415bd75Srobert class LoongArchTargetMachine; 24*d415bd75Srobert class MCInst; 25*d415bd75Srobert class MCOperand; 26*d415bd75Srobert class MachineInstr; 27*d415bd75Srobert class MachineOperand; 28*d415bd75Srobert class PassRegistry; 29*d415bd75Srobert 30*d415bd75Srobert bool lowerLoongArchMachineInstrToMCInst(const MachineInstr *MI, MCInst &OutMI, 31*d415bd75Srobert AsmPrinter &AP); 32*d415bd75Srobert bool lowerLoongArchMachineOperandToMCOperand(const MachineOperand &MO, 33*d415bd75Srobert MCOperand &MCOp, 34*d415bd75Srobert const AsmPrinter &AP); 35*d415bd75Srobert 36*d415bd75Srobert FunctionPass *createLoongArchExpandAtomicPseudoPass(); 37*d415bd75Srobert FunctionPass *createLoongArchISelDag(LoongArchTargetMachine &TM); 38*d415bd75Srobert FunctionPass *createLoongArchPreRAExpandPseudoPass(); 39*d415bd75Srobert void initializeLoongArchDAGToDAGISelPass(PassRegistry &); 40*d415bd75Srobert void initializeLoongArchExpandAtomicPseudoPass(PassRegistry &); 41*d415bd75Srobert void initializeLoongArchPreRAExpandPseudoPass(PassRegistry &); 42*d415bd75Srobert } // end namespace llvm 43*d415bd75Srobert 44*d415bd75Srobert #endif // LLVM_LIB_TARGET_LOONGARCH_LOONGARCH_H 45