LLVM  10.0.0svn
WasmException.h
Go to the documentation of this file.
1 //===-- WasmException.h - Wasm Exception Framework -------------*- C++ -*--===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // This file contains support for writing WebAssembly exception info into asm
10 // files.
11 //
12 //===----------------------------------------------------------------------===//
13 
14 #ifndef LLVM_LIB_CODEGEN_ASMPRINTER_WASMEXCEPTION_H
15 #define LLVM_LIB_CODEGEN_ASMPRINTER_WASMEXCEPTION_H
16 
17 #include "EHStreamer.h"
19 
20 namespace llvm {
21 
23 public:
25 
26  void endModule() override;
27  void beginFunction(const MachineFunction *MF) override {}
28  virtual void markFunctionEnd() override;
29  void endFunction(const MachineFunction *MF) override;
30 
31 protected:
32  // Compute the call site table for wasm EH.
33  void computeCallSiteTable(
35  const SmallVectorImpl<const LandingPadInfo *> &LandingPads,
36  const SmallVectorImpl<unsigned> &FirstActions) override;
37 };
38 
39 } // End of namespace llvm
40 
41 #endif
This class represents lattice values for constants.
Definition: AllocatorList.h:23
void beginFunction(const MachineFunction *MF) override
Gather pre-function debug information.
Definition: WasmException.h:27
Emits exception handling directives.
Definition: EHStreamer.h:30
This class consists of common code factored out of the SmallVector class to reduce code duplication b...
Definition: APFloat.h:41
This class is intended to be used as a driving class for all asm writers.
Definition: AsmPrinter.h:78
#define LLVM_LIBRARY_VISIBILITY
LLVM_LIBRARY_VISIBILITY - If a class marked with this attribute is linked into a shared library...
Definition: Compiler.h:124
WasmException(AsmPrinter *A)
Definition: WasmException.h:24