2015-06-30 07:51:55 +08:00
|
|
|
//===-- WebAssembly.h - Top-level interface for WebAssembly ----*- C++ -*-===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
///
|
|
|
|
/// \file
|
|
|
|
/// \brief This file contains the entry points for global functions defined in
|
|
|
|
/// the LLVM WebAssembly back-end.
|
|
|
|
///
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef LLVM_LIB_TARGET_WEBASSEMBLY_WEBASSEMBLY_H
|
|
|
|
#define LLVM_LIB_TARGET_WEBASSEMBLY_WEBASSEMBLY_H
|
|
|
|
|
2016-08-02 05:34:04 +08:00
|
|
|
#include "llvm/PassRegistry.h"
|
2015-06-30 07:51:55 +08:00
|
|
|
#include "llvm/Support/CodeGen.h"
|
|
|
|
|
|
|
|
namespace llvm {
|
|
|
|
|
|
|
|
class WebAssemblyTargetMachine;
|
2016-08-02 05:34:04 +08:00
|
|
|
class ModulePass;
|
2015-06-30 07:51:55 +08:00
|
|
|
class FunctionPass;
|
|
|
|
|
2016-05-10 12:24:02 +08:00
|
|
|
// LLVM IR passes.
|
2016-08-18 23:27:25 +08:00
|
|
|
ModulePass *createWebAssemblyLowerEmscriptenEHSjLj(bool DoEH, bool DoSjLj);
|
|
|
|
void initializeWebAssemblyLowerEmscriptenEHSjLjPass(PassRegistry &);
|
2015-11-26 00:55:01 +08:00
|
|
|
FunctionPass *createWebAssemblyOptimizeReturned();
|
|
|
|
|
2016-05-10 12:24:02 +08:00
|
|
|
// ISel and immediate followup passes.
|
2015-06-30 07:51:55 +08:00
|
|
|
FunctionPass *createWebAssemblyISelDag(WebAssemblyTargetMachine &TM,
|
|
|
|
CodeGenOpt::Level OptLevel);
|
2015-12-10 00:23:59 +08:00
|
|
|
FunctionPass *createWebAssemblyArgumentMove();
|
2016-01-26 11:39:31 +08:00
|
|
|
FunctionPass *createWebAssemblySetP2AlignOperands();
|
2015-06-30 07:51:55 +08:00
|
|
|
|
2016-05-10 12:24:02 +08:00
|
|
|
// Late passes.
|
|
|
|
FunctionPass *createWebAssemblyReplacePhysRegs();
|
|
|
|
FunctionPass *createWebAssemblyPrepareForLiveIntervals();
|
|
|
|
FunctionPass *createWebAssemblyOptimizeLiveIntervals();
|
2015-11-26 00:55:01 +08:00
|
|
|
FunctionPass *createWebAssemblyStoreResults();
|
2015-11-17 00:18:28 +08:00
|
|
|
FunctionPass *createWebAssemblyRegStackify();
|
|
|
|
FunctionPass *createWebAssemblyRegColoring();
|
2016-03-09 10:01:14 +08:00
|
|
|
FunctionPass *createWebAssemblyFixIrreducibleControlFlow();
|
2015-09-17 00:51:30 +08:00
|
|
|
FunctionPass *createWebAssemblyCFGStackify();
|
2015-12-05 11:03:35 +08:00
|
|
|
FunctionPass *createWebAssemblyLowerBrUnless();
|
2015-11-13 01:04:33 +08:00
|
|
|
FunctionPass *createWebAssemblyRegNumbering();
|
2015-11-26 00:55:01 +08:00
|
|
|
FunctionPass *createWebAssemblyPeephole();
|
2015-09-17 00:51:30 +08:00
|
|
|
|
2015-06-30 07:51:55 +08:00
|
|
|
} // end namespace llvm
|
|
|
|
|
|
|
|
#endif
|