[RISCV] Fix mgather -> riscv.masked.strided.load combine not extending indices (...
[llvm-project.git] / llvm / lib / CodeGen / AsmPrinter / WasmException.h
blob86cc37dfde079ec0e6be51817a453f46ea73156a
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.
12 //===----------------------------------------------------------------------===//
14 #ifndef LLVM_LIB_CODEGEN_ASMPRINTER_WASMEXCEPTION_H
15 #define LLVM_LIB_CODEGEN_ASMPRINTER_WASMEXCEPTION_H
17 #include "EHStreamer.h"
19 namespace llvm {
20 class AsmPrinter;
21 class MachineFunction;
22 struct LandingPadInfo;
23 template <typename T> class SmallVectorImpl;
25 class LLVM_LIBRARY_VISIBILITY WasmException : public EHStreamer {
26 public:
27 WasmException(AsmPrinter *A) : EHStreamer(A) {}
29 void endModule() override;
30 void beginFunction(const MachineFunction *MF) override {}
31 void endFunction(const MachineFunction *MF) override;
33 protected:
34 // Compute the call site table for wasm EH.
35 void computeCallSiteTable(
36 SmallVectorImpl<CallSiteEntry> &CallSites,
37 SmallVectorImpl<CallSiteRange> &CallSiteRanges,
38 const SmallVectorImpl<const LandingPadInfo *> &LandingPads,
39 const SmallVectorImpl<unsigned> &FirstActions) override;
42 } // End of namespace llvm
44 #endif