MLIR 22.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 "llvm/ADT/TypeSwitch.h"
12
13#include "mlir/IR/Builders.h"
15#include "mlir/Support/LLVM.h"
16
17using namespace mlir;
18using namespace mlir::wasmssa;
19
20#include "mlir/Dialect/WasmSSA/IR/WasmSSAOpsDialect.cpp.inc"
21
22//===----------------------------------------------------------------------===//
23// TableGen'd types definitions
24//===----------------------------------------------------------------------===//
25
26#define GET_TYPEDEF_CLASSES
27#include "mlir/Dialect/WasmSSA/IR/WasmSSAOpsTypes.cpp.inc"
28
29void wasmssa::WasmSSADialect::initialize() {
30 addOperations<
31#define GET_OP_LIST
32#include "mlir/Dialect/WasmSSA/IR/WasmSSAOps.cpp.inc"
33 >();
34 addTypes<
35#define GET_TYPEDEF_LIST
36#include "mlir/Dialect/WasmSSA/IR/WasmSSAOpsTypes.cpp.inc"
37 >();
38}
Include the generated interface declarations.