LLVM  8.0.1
WebAssembly.h
Go to the documentation of this file.
1 //===-- WebAssembly.h - Top-level interface for WebAssembly ----*- C++ -*-===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 ///
10 /// \file
11 /// This file contains the entry points for global functions defined in
12 /// the LLVM WebAssembly back-end.
13 ///
14 //===----------------------------------------------------------------------===//
15 
16 #ifndef LLVM_LIB_TARGET_WEBASSEMBLY_WEBASSEMBLY_H
17 #define LLVM_LIB_TARGET_WEBASSEMBLY_WEBASSEMBLY_H
18 
19 #include "llvm/PassRegistry.h"
20 #include "llvm/Support/CodeGen.h"
21 
22 namespace llvm {
23 
24 class WebAssemblyTargetMachine;
25 class ModulePass;
26 class FunctionPass;
27 
28 // LLVM IR passes.
29 ModulePass *createWebAssemblyLowerEmscriptenEHSjLj(bool DoEH, bool DoSjLj);
33 FunctionPass *createWebAssemblyOptimizeReturned();
34 
35 // ISel and immediate followup passes.
36 FunctionPass *createWebAssemblyISelDag(WebAssemblyTargetMachine &TM,
37  CodeGenOpt::Level OptLevel);
38 FunctionPass *createWebAssemblyArgumentMove();
40 
41 // Late passes.
43 FunctionPass *createWebAssemblyReplacePhysRegs();
47 FunctionPass *createWebAssemblyRegStackify();
48 FunctionPass *createWebAssemblyRegColoring();
49 FunctionPass *createWebAssemblyExplicitLocals();
51 FunctionPass *createWebAssemblyLateEHPrepare();
52 FunctionPass *createWebAssemblyCFGSort();
53 FunctionPass *createWebAssemblyCFGStackify();
54 FunctionPass *createWebAssemblyLowerBrUnless();
55 FunctionPass *createWebAssemblyRegNumbering();
56 FunctionPass *createWebAssemblyPeephole();
58 
59 // PassRegistry initialization declarations.
62 void initializeLowerGlobalDtorsPass(PassRegistry &);
63 void initializeFixFunctionBitcastsPass(PassRegistry &);
64 void initializeOptimizeReturnedPass(PassRegistry &);
65 void initializeWebAssemblyArgumentMovePass(PassRegistry &);
68 void initializeWebAssemblyReplacePhysRegsPass(PassRegistry &);
72 void initializeWebAssemblyRegStackifyPass(PassRegistry &);
73 void initializeWebAssemblyRegColoringPass(PassRegistry &);
74 void initializeWebAssemblyExplicitLocalsPass(PassRegistry &);
76 void initializeWebAssemblyLateEHPreparePass(PassRegistry &);
77 void initializeWebAssemblyExceptionInfoPass(PassRegistry &);
78 void initializeWebAssemblyCFGSortPass(PassRegistry &);
79 void initializeWebAssemblyCFGStackifyPass(PassRegistry &);
80 void initializeWebAssemblyLowerBrUnlessPass(PassRegistry &);
81 void initializeWebAssemblyRegNumberingPass(PassRegistry &);
82 void initializeWebAssemblyPeepholePass(PassRegistry &);
84 
85 } // end namespace llvm
86 
87 #endif
FunctionPass * createWebAssemblyLowerBrUnless()
ModulePass * createWebAssemblyLowerEmscriptenEHSjLj(bool DoEH, bool DoSjLj)
This class represents lattice values for constants.
Definition: AllocatorList.h:24
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()
FunctionPass * createWebAssemblyEHRestoreStackPointer()
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 initializeWebAssemblyEHRestoreStackPointerPass(PassRegistry &)
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 &)