LLVM  15.0.0git
RISCV.h
Go to the documentation of this file.
1 //===-- RISCV.h - Top-level interface for RISCV -----------------*- 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 // RISC-V back-end.
11 //
12 //===----------------------------------------------------------------------===//
13 
14 #ifndef LLVM_LIB_TARGET_RISCV_RISCV_H
15 #define LLVM_LIB_TARGET_RISCV_RISCV_H
16 
19 
20 namespace llvm {
21 class RISCVRegisterBankInfo;
22 class RISCVSubtarget;
23 class RISCVTargetMachine;
24 class AsmPrinter;
25 class FunctionPass;
26 class InstructionSelector;
27 class MCInst;
28 class MCOperand;
29 class MachineInstr;
30 class MachineOperand;
31 class PassRegistry;
32 
33 bool lowerRISCVMachineInstrToMCInst(const MachineInstr *MI, MCInst &OutMI,
34  AsmPrinter &AP);
35 bool lowerRISCVMachineOperandToMCOperand(const MachineOperand &MO,
36  MCOperand &MCOp, const AsmPrinter &AP);
37 
38 FunctionPass *createRISCVISelDag(RISCVTargetMachine &TM,
39  CodeGenOpt::Level OptLevel);
40 
42 void initializeRISCVMakeCompressibleOptPass(PassRegistry &);
43 
45 void initializeRISCVGatherScatterLoweringPass(PassRegistry &);
46 
47 FunctionPass *createRISCVSExtWRemovalPass();
48 void initializeRISCVSExtWRemovalPass(PassRegistry &);
49 
50 FunctionPass *createRISCVMergeBaseOffsetOptPass();
51 void initializeRISCVMergeBaseOffsetOptPass(PassRegistry &);
52 
53 FunctionPass *createRISCVExpandPseudoPass();
54 void initializeRISCVExpandPseudoPass(PassRegistry &);
55 
56 FunctionPass *createRISCVExpandAtomicPseudoPass();
57 void initializeRISCVExpandAtomicPseudoPass(PassRegistry &);
58 
59 FunctionPass *createRISCVInsertVSETVLIPass();
60 void initializeRISCVInsertVSETVLIPass(PassRegistry &);
61 
64 
65 InstructionSelector *createRISCVInstructionSelector(const RISCVTargetMachine &,
66  RISCVSubtarget &,
67  RISCVRegisterBankInfo &);
68 }
69 
70 #endif
MI
IRTranslator LLVM IR MI
Definition: IRTranslator.cpp:104
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:17
llvm::createRISCVInsertVSETVLIPass
FunctionPass * createRISCVInsertVSETVLIPass()
Returns an instance of the Insert VSETVLI pass.
Definition: RISCVInsertVSETVLI.cpp:1554
llvm::createRISCVMergeBaseOffsetOptPass
FunctionPass * createRISCVMergeBaseOffsetOptPass()
Returns an instance of the Merge Base Offset Optimization pass.
Definition: RISCVMergeBaseOffset.cpp:410
llvm::createRISCVExpandAtomicPseudoPass
FunctionPass * createRISCVExpandAtomicPseudoPass()
llvm::initializeRISCVMergeBaseOffsetOptPass
void initializeRISCVMergeBaseOffsetOptPass(PassRegistry &)
llvm::initializeRISCVExpandPseudoPass
void initializeRISCVExpandPseudoPass(PassRegistry &)
TargetMachine.h
llvm::initializeRISCVRedundantCopyEliminationPass
void initializeRISCVRedundantCopyEliminationPass(PassRegistry &)
llvm::lowerRISCVMachineInstrToMCInst
bool lowerRISCVMachineInstrToMCInst(const MachineInstr *MI, MCInst &OutMI, AsmPrinter &AP)
Definition: RISCVMCInstLower.cpp:213
llvm::initializeRISCVSExtWRemovalPass
void initializeRISCVSExtWRemovalPass(PassRegistry &)
llvm::initializeRISCVExpandAtomicPseudoPass
void initializeRISCVExpandAtomicPseudoPass(PassRegistry &)
llvm::createRISCVInstructionSelector
InstructionSelector * createRISCVInstructionSelector(const RISCVTargetMachine &, RISCVSubtarget &, RISCVRegisterBankInfo &)
Definition: RISCVInstructionSelector.cpp:98
llvm::createRISCVISelDag
FunctionPass * createRISCVISelDag(RISCVTargetMachine &TM, CodeGenOpt::Level OptLevel)
Definition: RISCVISelDAGToDAG.cpp:2579
llvm::initializeRISCVGatherScatterLoweringPass
void initializeRISCVGatherScatterLoweringPass(PassRegistry &)
llvm::lowerRISCVMachineOperandToMCOperand
bool lowerRISCVMachineOperandToMCOperand(const MachineOperand &MO, MCOperand &MCOp, const AsmPrinter &AP)
Definition: RISCVMCInstLower.cpp:90
llvm::initializeRISCVMakeCompressibleOptPass
void initializeRISCVMakeCompressibleOptPass(PassRegistry &)
llvm::createRISCVMakeCompressibleOptPass
FunctionPass * createRISCVMakeCompressibleOptPass()
Returns an instance of the Make Compressible Optimization pass.
Definition: RISCVMakeCompressible.cpp:380
llvm::createRISCVExpandPseudoPass
FunctionPass * createRISCVExpandPseudoPass()
llvm::createRISCVGatherScatterLoweringPass
FunctionPass * createRISCVGatherScatterLoweringPass()
llvm::CodeGenOpt::Level
Level
Definition: CodeGen.h:52
llvm::createRISCVSExtWRemovalPass
FunctionPass * createRISCVSExtWRemovalPass()
llvm::createRISCVRedundantCopyEliminationPass
FunctionPass * createRISCVRedundantCopyEliminationPass()
Definition: RISCVRedundantCopyElimination.cpp:177
RISCVBaseInfo.h
llvm::initializeRISCVInsertVSETVLIPass
void initializeRISCVInsertVSETVLIPass(PassRegistry &)
TM
const char LLVMTargetMachineRef TM
Definition: PassBuilderBindings.cpp:47