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

source code of llvm/lib/Target/LoongArch/LoongArch.h