MLIR 24.0.0git
WasmSSADialect.cpp
Go to the documentation of this file.
1//===- WebAssemblyDialect.cpp - MLIR WebAssembly dialect implementation ---===//
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
10
11#include "mlir/Support/LLVM.h"
12
13using namespace mlir;
14using namespace mlir::wasmssa;
15
16#include "mlir/Dialect/WasmSSA/IR/WasmSSAOpsDialect.cpp.inc"
17
18//===----------------------------------------------------------------------===//
19// TableGen'd types definitions
20//===----------------------------------------------------------------------===//
21
22#define GET_TYPEDEF_CLASSES
23#include "mlir/Dialect/WasmSSA/IR/WasmSSAOpsTypes.cpp.inc"
24
25void wasmssa::WasmSSADialect::initialize() {
26 addOperations<
27#define GET_OP_LIST
28#include "mlir/Dialect/WasmSSA/IR/WasmSSAOps.cpp.inc"
29 >();
30 addTypes<
31#define GET_TYPEDEF_LIST
32#include "mlir/Dialect/WasmSSA/IR/WasmSSAOpsTypes.cpp.inc"
33 >();
34}
Include the generated interface declarations.