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 /// \brief 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);
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();
44 FunctionPass *createWebAssemblyStoreResults();
45 FunctionPass *createWebAssemblyRegStackify();
46 FunctionPass *createWebAssemblyRegColoring();
47 FunctionPass *createWebAssemblyExplicitLocals();
49 FunctionPass *createWebAssemblyCFGSort();
50 FunctionPass *createWebAssemblyCFGStackify();
51 FunctionPass *createWebAssemblyLowerBrUnless();
52 FunctionPass *createWebAssemblyRegNumbering();
53 FunctionPass *createWebAssemblyPeephole();
55 
56 // PassRegistry initialization declarations.
58 void initializeLowerGlobalDtorsPass(PassRegistry &);
59 void initializeFixFunctionBitcastsPass(PassRegistry &);
60 void initializeOptimizeReturnedPass(PassRegistry &);
61 void initializeWebAssemblyArgumentMovePass(PassRegistry &);
63 void initializeWebAssemblyReplacePhysRegsPass(PassRegistry &);
66 void initializeWebAssemblyStoreResultsPass(PassRegistry &);
67 void initializeWebAssemblyRegStackifyPass(PassRegistry &);
68 void initializeWebAssemblyRegColoringPass(PassRegistry &);
69 void initializeWebAssemblyExplicitLocalsPass(PassRegistry &);
71 void initializeWebAssemblyCFGSortPass(PassRegistry &);
72 void initializeWebAssemblyCFGStackifyPass(PassRegistry &);
73 void initializeWebAssemblyLowerBrUnlessPass(PassRegistry &);
74 void initializeWebAssemblyRegNumberingPass(PassRegistry &);
75 void initializeWebAssemblyPeepholePass(PassRegistry &);
77 
78 } // end namespace llvm
79 
80 #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 initializeOptimizeReturnedPass(PassRegistry &)
FunctionPass * createWebAssemblyRegColoring()
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 &)
FunctionPass * createWebAssemblyStoreResults()
ModulePass * createWebAssemblyFixFunctionBitcasts()
void initializeWebAssemblyLowerBrUnlessPass(PassRegistry &)
FunctionPass * createWebAssemblyFixIrreducibleControlFlow()
void initializeWebAssemblyCFGStackifyPass(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 &)