2015-06-29 23:51:55 +00:00
|
|
|
//===-- WebAssembly.h - Top-level interface for WebAssembly ----*- C++ -*-===//
|
|
|
|
//
|
2019-01-19 08:50:56 +00:00
|
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
2015-06-29 23:51:55 +00:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
///
|
|
|
|
/// \file
|
2018-05-01 15:54:18 +00:00
|
|
|
/// This file contains the entry points for global functions defined in
|
2015-06-29 23:51:55 +00:00
|
|
|
/// the LLVM WebAssembly back-end.
|
|
|
|
///
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef LLVM_LIB_TARGET_WEBASSEMBLY_WEBASSEMBLY_H
|
|
|
|
#define LLVM_LIB_TARGET_WEBASSEMBLY_WEBASSEMBLY_H
|
|
|
|
|
2016-08-01 21:34:04 +00:00
|
|
|
#include "llvm/PassRegistry.h"
|
2015-06-29 23:51:55 +00:00
|
|
|
#include "llvm/Support/CodeGen.h"
|
|
|
|
|
|
|
|
namespace llvm {
|
|
|
|
|
|
|
|
class WebAssemblyTargetMachine;
|
2016-08-01 21:34:04 +00:00
|
|
|
class ModulePass;
|
2015-06-29 23:51:55 +00:00
|
|
|
class FunctionPass;
|
|
|
|
|
2016-05-10 04:24:02 +00:00
|
|
|
// LLVM IR passes.
|
2016-08-18 15:27:25 +00:00
|
|
|
ModulePass *createWebAssemblyLowerEmscriptenEHSjLj(bool DoEH, bool DoSjLj);
|
2017-12-15 00:17:10 +00:00
|
|
|
ModulePass *createWebAssemblyLowerGlobalDtors();
|
2018-07-11 04:29:36 +00:00
|
|
|
ModulePass *createWebAssemblyAddMissingPrototypes();
|
2017-01-07 00:34:54 +00:00
|
|
|
ModulePass *createWebAssemblyFixFunctionBitcasts();
|
2015-11-25 16:55:01 +00:00
|
|
|
FunctionPass *createWebAssemblyOptimizeReturned();
|
|
|
|
|
2016-05-10 04:24:02 +00:00
|
|
|
// ISel and immediate followup passes.
|
2015-06-29 23:51:55 +00:00
|
|
|
FunctionPass *createWebAssemblyISelDag(WebAssemblyTargetMachine &TM,
|
|
|
|
CodeGenOpt::Level OptLevel);
|
2015-12-09 16:23:59 +00:00
|
|
|
FunctionPass *createWebAssemblyArgumentMove();
|
2016-01-26 03:39:31 +00:00
|
|
|
FunctionPass *createWebAssemblySetP2AlignOperands();
|
2015-06-29 23:51:55 +00:00
|
|
|
|
2016-05-10 04:24:02 +00:00
|
|
|
// Late passes.
|
|
|
|
FunctionPass *createWebAssemblyReplacePhysRegs();
|
|
|
|
FunctionPass *createWebAssemblyPrepareForLiveIntervals();
|
|
|
|
FunctionPass *createWebAssemblyOptimizeLiveIntervals();
|
2019-01-08 22:35:18 +00:00
|
|
|
FunctionPass *createWebAssemblyMemIntrinsicResults();
|
2015-11-16 16:18:28 +00:00
|
|
|
FunctionPass *createWebAssemblyRegStackify();
|
|
|
|
FunctionPass *createWebAssemblyRegColoring();
|
2016-10-24 19:49:43 +00:00
|
|
|
FunctionPass *createWebAssemblyExplicitLocals();
|
2016-03-09 02:01:14 +00:00
|
|
|
FunctionPass *createWebAssemblyFixIrreducibleControlFlow();
|
2018-06-25 01:07:11 +00:00
|
|
|
FunctionPass *createWebAssemblyLateEHPrepare();
|
2017-02-27 22:38:58 +00:00
|
|
|
FunctionPass *createWebAssemblyCFGSort();
|
2015-09-16 16:51:30 +00:00
|
|
|
FunctionPass *createWebAssemblyCFGStackify();
|
2015-12-05 03:03:35 +00:00
|
|
|
FunctionPass *createWebAssemblyLowerBrUnless();
|
2015-11-12 17:04:33 +00:00
|
|
|
FunctionPass *createWebAssemblyRegNumbering();
|
2015-11-25 16:55:01 +00:00
|
|
|
FunctionPass *createWebAssemblyPeephole();
|
2016-10-21 16:38:07 +00:00
|
|
|
FunctionPass *createWebAssemblyCallIndirectFixup();
|
2015-09-16 16:51:30 +00:00
|
|
|
|
2018-03-30 20:36:58 +00:00
|
|
|
// PassRegistry initialization declarations.
|
2018-07-11 04:29:36 +00:00
|
|
|
void initializeWebAssemblyAddMissingPrototypesPass(PassRegistry &);
|
2018-03-30 20:36:58 +00:00
|
|
|
void initializeWebAssemblyLowerEmscriptenEHSjLjPass(PassRegistry &);
|
|
|
|
void initializeLowerGlobalDtorsPass(PassRegistry &);
|
|
|
|
void initializeFixFunctionBitcastsPass(PassRegistry &);
|
|
|
|
void initializeOptimizeReturnedPass(PassRegistry &);
|
|
|
|
void initializeWebAssemblyArgumentMovePass(PassRegistry &);
|
|
|
|
void initializeWebAssemblySetP2AlignOperandsPass(PassRegistry &);
|
|
|
|
void initializeWebAssemblyReplacePhysRegsPass(PassRegistry &);
|
|
|
|
void initializeWebAssemblyPrepareForLiveIntervalsPass(PassRegistry &);
|
|
|
|
void initializeWebAssemblyOptimizeLiveIntervalsPass(PassRegistry &);
|
2019-01-08 22:35:18 +00:00
|
|
|
void initializeWebAssemblyMemIntrinsicResultsPass(PassRegistry &);
|
2018-03-30 20:36:58 +00:00
|
|
|
void initializeWebAssemblyRegStackifyPass(PassRegistry &);
|
|
|
|
void initializeWebAssemblyRegColoringPass(PassRegistry &);
|
|
|
|
void initializeWebAssemblyExplicitLocalsPass(PassRegistry &);
|
|
|
|
void initializeWebAssemblyFixIrreducibleControlFlowPass(PassRegistry &);
|
2018-06-25 01:07:11 +00:00
|
|
|
void initializeWebAssemblyLateEHPreparePass(PassRegistry &);
|
2018-06-25 01:20:21 +00:00
|
|
|
void initializeWebAssemblyExceptionInfoPass(PassRegistry &);
|
2018-03-30 20:36:58 +00:00
|
|
|
void initializeWebAssemblyCFGSortPass(PassRegistry &);
|
|
|
|
void initializeWebAssemblyCFGStackifyPass(PassRegistry &);
|
|
|
|
void initializeWebAssemblyLowerBrUnlessPass(PassRegistry &);
|
|
|
|
void initializeWebAssemblyRegNumberingPass(PassRegistry &);
|
|
|
|
void initializeWebAssemblyPeepholePass(PassRegistry &);
|
|
|
|
void initializeWebAssemblyCallIndirectFixupPass(PassRegistry &);
|
|
|
|
|
2015-06-29 23:51:55 +00:00
|
|
|
} // end namespace llvm
|
|
|
|
|
|
|
|
#endif
|