LLVM 24.0.0git
LoongArch.h
Go to the documentation of this file.
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
21#include "llvm/IR/Analysis.h"
22#include "llvm/IR/PassManager.h"
25
26namespace llvm {
27class AsmPrinter;
28class FunctionPass;
30class MCInst;
31class MCOperand;
32class MachineInstr;
33class MachineOperand;
34class PassRegistry;
35
37 AsmPrinter &AP);
39 MCOperand &MCOp,
40 const AsmPrinter &AP);
41
43 : public OptionalPassInfoMixin<LoongArchDeadRegisterDefinitionsPass> {
44public:
47};
48
50
52 : public RequiredPassInfoMixin<LoongArchExpandAtomicPseudoPass> {
53public:
56};
57
59
65
67 CodeGenOptLevel OptLevel);
68
70 : public OptionalPassInfoMixin<LoongArchMemoryBarrierOptPass> {
71public:
74};
75
77
79 : public OptionalPassInfoMixin<LoongArchMergeBaseOffsetPass> {
80public:
83
87};
88
90
92 : public OptionalPassInfoMixin<LoongArchOptWInstrsPass> {
93public:
96};
97
99
101 : public RequiredPassInfoMixin<LoongArchPreRAExpandPseudoPass> {
102public:
105};
106
108
110 : public RequiredPassInfoMixin<LoongArchExpandPseudoPass> {
111public:
114};
115
117
119 : public OptionalPassInfoMixin<LoongArchLateBranchOptPass> {
120public:
123};
124
136} // end namespace llvm
137
138#endif // LLVM_LIB_TARGET_LOONGARCH_LOONGARCH_H
IRTranslator LLVM IR MI
This header defines various interfaces for pass management in LLVM.
This class is intended to be used as a driving class for all asm writers.
Definition AsmPrinter.h:93
FunctionPass class - This class is used to implement most global optimizations.
Definition Pass.h:312
PreservedAnalyses run(MachineFunction &MF, MachineFunctionAnalysisManager &MFAM)
PreservedAnalyses run(MachineFunction &MF, MachineFunctionAnalysisManager &MFAM)
PreservedAnalyses run(MachineFunction &MF, MachineFunctionAnalysisManager &MFAM)
LoongArchISelDAGToDAGPass(LoongArchTargetMachine &TM, CodeGenOptLevel OptLevel)
PreservedAnalyses run(MachineFunction &MF, MachineFunctionAnalysisManager &MFAM)
PreservedAnalyses run(MachineFunction &MF, MachineFunctionAnalysisManager &MFAM)
MachineFunctionProperties getRequiredProperties() const
Definition LoongArch.h:84
PreservedAnalyses run(MachineFunction &MF, MachineFunctionAnalysisManager &MFAM)
PreservedAnalyses run(MachineFunction &MF, MachineFunctionAnalysisManager &MFAM)
PreservedAnalyses run(MachineFunction &MF, MachineFunctionAnalysisManager &MFAM)
Instances of this class represent a single low-level machine instruction.
Definition MCInst.h:187
Instances of this class represent operands of the MCInst class.
Definition MCInst.h:39
Properties which a MachineFunction may have at a given point in time.
Representation of each machine instruction.
MachineOperand class - Representation of each machine instruction operand.
PassRegistry - This class manages the registration and intitialization of the pass subsystem as appli...
A set of analyses that are preserved following a run of a transformation pass.
Definition Analysis.h:112
SelectionDAGISelPass(std::unique_ptr< SelectionDAGISel > Selector)
Pass manager infrastructure for declaring and invalidating analyses.
This is an optimization pass for GlobalISel generic memory operations.
FunctionPass * createLoongArchExpandPseudoLegacyPass()
void initializeLoongArchDAGToDAGISelLegacyPass(PassRegistry &)
void initializeLoongArchExpandAtomicPseudoLegacyPass(PassRegistry &)
void initializeLoongArchMemoryBarrierOptLegacyPass(PassRegistry &)
void initializeLoongArchLateBranchOptLegacyPass(PassRegistry &)
FunctionPass * createLoongArchMemoryBarrierOptLegacyPass()
void initializeLoongArchDeadRegisterDefinitionsLegacyPass(PassRegistry &)
bool lowerLoongArchMachineInstrToMCInst(const MachineInstr *MI, MCInst &OutMI, AsmPrinter &AP)
void initializeLoongArchMergeBaseOffsetLegacyPass(PassRegistry &)
bool lowerLoongArchMachineOperandToMCOperand(const MachineOperand &MO, MCOperand &MCOp, const AsmPrinter &AP)
FunctionPass * createLoongArchPreRAExpandPseudoLegacyPass()
FunctionPass * createLoongArchMergeBaseOffsetLegacyPass()
Returns an instance of the Merge Base Offset Optimization pass.
AnalysisManager< MachineFunction > MachineFunctionAnalysisManager
void initializeLoongArchPreRAExpandPseudoLegacyPass(PassRegistry &)
FunctionPass * createLoongArchLateBranchOptLegacyPass()
void initializeLoongArchExpandPseudoLegacyPass(PassRegistry &)
FunctionPass * createLoongArchISelDagLegacyPass(LoongArchTargetMachine &TM, CodeGenOptLevel OptLevel)
FunctionPass * createLoongArchOptWInstrsLegacyPass()
CodeGenOptLevel
Code generation optimization level.
Definition CodeGen.h:280
void initializeLoongArchOptWInstrsLegacyPass(PassRegistry &)
FunctionPass * createLoongArchExpandAtomicPseudoLegacyPass()
void initializeLoongArchAsmPrinterPass(PassRegistry &)
FunctionPass * createLoongArchDeadRegisterDefinitionsLegacyPass()
A CRTP mix-in for passes that can be skipped.
A CRTP mix-in for passes that should not be skipped.