LLVM  7.0.0svn
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.
42 FunctionPass *createWebAssemblyReplacePhysRegs();
45 FunctionPass *createWebAssemblyStoreResults();
46 FunctionPass *createWebAssemblyRegStackify();
47 FunctionPass *createWebAssemblyRegColoring();
48 FunctionPass *createWebAssemblyExplicitLocals();
50 FunctionPass *createWebAssemblyLateEHPrepare();
51 FunctionPass *createWebAssemblyCFGSort();
52 FunctionPass *createWebAssemblyCFGStackify();
53 FunctionPass *createWebAssemblyLowerBrUnless();
54 FunctionPass *createWebAssemblyRegNumbering();
55 FunctionPass *createWebAssemblyPeephole();
57 
58 // PassRegistry initialization declarations.
61 void initializeLowerGlobalDtorsPass(PassRegistry &);
62 void initializeFixFunctionBitcastsPass(PassRegistry &);
63 void initializeOptimizeReturnedPass(PassRegistry &);
64 void initializeWebAssemblyArgumentMovePass(PassRegistry &);
66 void initializeWebAssemblyReplacePhysRegsPass(PassRegistry &);
69 void initializeWebAssemblyStoreResultsPass(PassRegistry &);
70 void initializeWebAssemblyRegStackifyPass(PassRegistry &);
71 void initializeWebAssemblyRegColoringPass(PassRegistry &);
72 void initializeWebAssemblyExplicitLocalsPass(PassRegistry &);
74 void initializeWebAssemblyLateEHPreparePass(PassRegistry &);
75 void initializeWebAssemblyExceptionInfoPass(PassRegistry &);
76 void initializeWebAssemblyCFGSortPass(PassRegistry &);
77 void initializeWebAssemblyCFGStackifyPass(PassRegistry &);
78 void initializeWebAssemblyLowerBrUnlessPass(PassRegistry &);
79 void initializeWebAssemblyRegNumberingPass(PassRegistry &);
80 void initializeWebAssemblyPeepholePass(PassRegistry &);
82 
83 } // end namespace llvm
84 
85 #endif
FunctionPass * createWebAssemblyLowerBrUnless()
ModulePass * createWebAssemblyLowerEmscriptenEHSjLj(bool DoEH, bool DoSjLj)
Compute iterated dominance frontiers using a linear time algorithm.
Definition: AllocatorList.h:24
FunctionPass * createWebAssemblyCFGSort()
void initializeWebAssemblyOptimizeLiveIntervalsPass(PassRegistry &)
FunctionPass * createWebAssemblyArgumentMove()
FunctionPass * createWebAssemblyPeephole()
void initializeWebAssemblyRegStackifyPass(PassRegistry &)
void initializeWebAssemblyArgumentMovePass(PassRegistry &)
void initializeWebAssemblyFixIrreducibleControlFlowPass(PassRegistry &)
FunctionPass * createWebAssemblyRegStackify()
FunctionPass * createWebAssemblyOptimizeReturned()
void initializeWebAssemblyStoreResultsPass(PassRegistry &)
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 &)
FunctionPass * createWebAssemblyStoreResults()
ModulePass * createWebAssemblyFixFunctionBitcasts()
void initializeWebAssemblyLowerBrUnlessPass(PassRegistry &)
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 &)