LLVM  9.0.0svn
WebAssembly.h
Go to the documentation of this file.
1 //===-- WebAssembly.h - Top-level interface for WebAssembly ----*- 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 /// \file
10 /// This file contains the entry points for global functions defined in
11 /// the LLVM WebAssembly back-end.
12 ///
13 //===----------------------------------------------------------------------===//
14 
15 #ifndef LLVM_LIB_TARGET_WEBASSEMBLY_WEBASSEMBLY_H
16 #define LLVM_LIB_TARGET_WEBASSEMBLY_WEBASSEMBLY_H
17 
18 #include "llvm/PassRegistry.h"
19 #include "llvm/Support/CodeGen.h"
20 
21 namespace llvm {
22 
23 class WebAssemblyTargetMachine;
24 class ModulePass;
25 class FunctionPass;
26 
27 // LLVM IR passes.
28 ModulePass *createWebAssemblyLowerEmscriptenEHSjLj(bool DoEH, bool DoSjLj);
32 FunctionPass *createWebAssemblyOptimizeReturned();
33 
34 // ISel and immediate followup passes.
35 FunctionPass *createWebAssemblyISelDag(WebAssemblyTargetMachine &TM,
36  CodeGenOpt::Level OptLevel);
37 FunctionPass *createWebAssemblyArgumentMove();
39 
40 // Late passes.
41 FunctionPass *createWebAssemblyReplacePhysRegs();
45 FunctionPass *createWebAssemblyRegStackify();
46 FunctionPass *createWebAssemblyRegColoring();
48 FunctionPass *createWebAssemblyLateEHPrepare();
49 FunctionPass *createWebAssemblyCFGSort();
50 FunctionPass *createWebAssemblyCFGStackify();
51 FunctionPass *createWebAssemblyExplicitLocals();
52 FunctionPass *createWebAssemblyLowerBrUnless();
53 FunctionPass *createWebAssemblyRegNumbering();
54 FunctionPass *createWebAssemblyPeephole();
56 
57 // PassRegistry initialization declarations.
60 void initializeLowerGlobalDtorsPass(PassRegistry &);
61 void initializeFixFunctionBitcastsPass(PassRegistry &);
62 void initializeOptimizeReturnedPass(PassRegistry &);
63 void initializeWebAssemblyArgumentMovePass(PassRegistry &);
65 void initializeWebAssemblyReplacePhysRegsPass(PassRegistry &);
69 void initializeWebAssemblyRegStackifyPass(PassRegistry &);
70 void initializeWebAssemblyRegColoringPass(PassRegistry &);
72 void initializeWebAssemblyLateEHPreparePass(PassRegistry &);
73 void initializeWebAssemblyExceptionInfoPass(PassRegistry &);
74 void initializeWebAssemblyCFGSortPass(PassRegistry &);
75 void initializeWebAssemblyCFGStackifyPass(PassRegistry &);
76 void initializeWebAssemblyExplicitLocalsPass(PassRegistry &);
77 void initializeWebAssemblyLowerBrUnlessPass(PassRegistry &);
78 void initializeWebAssemblyRegNumberingPass(PassRegistry &);
79 void initializeWebAssemblyPeepholePass(PassRegistry &);
81 
82 } // end namespace llvm
83 
84 #endif
FunctionPass * createWebAssemblyLowerBrUnless()
ModulePass * createWebAssemblyLowerEmscriptenEHSjLj(bool DoEH, bool DoSjLj)
This class represents lattice values for constants.
Definition: AllocatorList.h:23
FunctionPass * createWebAssemblyCFGSort()
void initializeWebAssemblyOptimizeLiveIntervalsPass(PassRegistry &)
FunctionPass * createWebAssemblyArgumentMove()
void initializeWebAssemblyMemIntrinsicResultsPass(PassRegistry &)
FunctionPass * createWebAssemblyPeephole()
void initializeWebAssemblyRegStackifyPass(PassRegistry &)
void initializeWebAssemblyArgumentMovePass(PassRegistry &)
void initializeWebAssemblyFixIrreducibleControlFlowPass(PassRegistry &)
FunctionPass * createWebAssemblyRegStackify()
FunctionPass * createWebAssemblyOptimizeReturned()
FunctionPass * createWebAssemblyRegNumbering()
void initializeWebAssemblyRegNumberingPass(PassRegistry &)
void initializeWebAssemblyExceptionInfoPass(PassRegistry &)
void initializeOptimizeReturnedPass(PassRegistry &)
FunctionPass * createWebAssemblyRegColoring()
ModulePass * createWebAssemblyAddMissingPrototypes()
void initializeWebAssemblyExplicitLocalsPass(PassRegistry &)
void initializeWebAssemblyPeepholePass(PassRegistry &)
FunctionPass * createWebAssemblyISelDag(WebAssemblyTargetMachine &TM, CodeGenOpt::Level OptLevel)
This pass converts a legalized DAG into a WebAssembly-specific DAG, ready for instruction scheduling...
FunctionPass * createWebAssemblyCallIndirectFixup()
ModulePass * createWebAssemblyLowerGlobalDtors()
void initializeWebAssemblyCallIndirectFixupPass(PassRegistry &)
void initializeWebAssemblyReplacePhysRegsPass(PassRegistry &)
FunctionPass * createWebAssemblySetP2AlignOperands()
void initializeWebAssemblyLowerEmscriptenEHSjLjPass(PassRegistry &)
void initializeWebAssemblyLateEHPreparePass(PassRegistry &)
ModulePass * createWebAssemblyFixFunctionBitcasts()
void initializeWebAssemblyLowerBrUnlessPass(PassRegistry &)
FunctionPass * createWebAssemblyMemIntrinsicResults()
FunctionPass * createWebAssemblyFixIrreducibleControlFlow()
void initializeWebAssemblyCFGStackifyPass(PassRegistry &)
FunctionPass * createWebAssemblyLateEHPrepare()
void initializeWebAssemblyAddMissingPrototypesPass(PassRegistry &)
void initializeFixFunctionBitcastsPass(PassRegistry &)
FunctionPass * createWebAssemblyOptimizeLiveIntervals()
FunctionPass * createWebAssemblyCFGStackify()
void initializeWebAssemblyPrepareForLiveIntervalsPass(PassRegistry &)
void initializeWebAssemblySetP2AlignOperandsPass(PassRegistry &)
void initializeLowerGlobalDtorsPass(PassRegistry &)
FunctionPass * createWebAssemblyPrepareForLiveIntervals()
FunctionPass * createWebAssemblyReplacePhysRegs()
void initializeWebAssemblyCFGSortPass(PassRegistry &)
FunctionPass * createWebAssemblyExplicitLocals()
void initializeWebAssemblyRegColoringPass(PassRegistry &)