1 //===-- WebAssembly.h - Top-level interface for WebAssembly ----*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
11 /// \brief This file contains the entry points for global functions defined in
12 /// the LLVM WebAssembly back-end.
14 //===----------------------------------------------------------------------===//
16 #ifndef LLVM_LIB_TARGET_WEBASSEMBLY_WEBASSEMBLY_H
17 #define LLVM_LIB_TARGET_WEBASSEMBLY_WEBASSEMBLY_H
19 #include "llvm/Support/CodeGen.h"
23 class WebAssemblyTargetMachine;
26 FunctionPass *createWebAssemblyOptimizeReturned();
28 FunctionPass *createWebAssemblyISelDag(WebAssemblyTargetMachine &TM,
29 CodeGenOpt::Level OptLevel);
31 FunctionPass *createWebAssemblyStoreResults();
32 FunctionPass *createWebAssemblyRegStackify();
33 FunctionPass *createWebAssemblyRegColoring();
34 FunctionPass *createWebAssemblyCFGStackify();
35 FunctionPass *createWebAssemblyRegNumbering();
36 FunctionPass *createWebAssemblyPeephole();
38 FunctionPass *createWebAssemblyRelooper();
40 } // end namespace llvm