MLIR 24.0.0git
MPI.cpp
Go to the documentation of this file.
1//===- MPI.cpp - MPI 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
11using namespace mlir;
12using namespace mlir::mpi;
13
14//===----------------------------------------------------------------------===//
15/// Tablegen Definitions
16//===----------------------------------------------------------------------===//
17
18#include "mlir/Dialect/MPI/IR/MPI.cpp.inc"
19
20#include "mlir/Dialect/MPI/IR/MPIDialect.cpp.inc"
21
22void MPIDialect::initialize() {
23 addOperations<
24#define GET_OP_LIST
25#include "mlir/Dialect/MPI/IR/MPIOps.cpp.inc"
26 >();
27
28 addTypes<
29#define GET_TYPEDEF_LIST
30#include "mlir/Dialect/MPI/IR/MPITypesGen.cpp.inc"
31 >();
32
33 addAttributes<
34#define GET_ATTRDEF_LIST
35#include "mlir/Dialect/MPI/IR/MPIAttrDefs.cpp.inc"
36 >();
37}
38
39//===----------------------------------------------------------------------===//
40// TableGen'd dialect, type, and op definitions
41//===----------------------------------------------------------------------===//
42
43#define GET_TYPEDEF_CLASSES
44#include "mlir/Dialect/MPI/IR/MPITypesGen.cpp.inc"
45
46#include "mlir/Dialect/MPI/IR/MPIEnums.cpp.inc"
47
48#define GET_ATTRDEF_CLASSES
49#include "mlir/Dialect/MPI/IR/MPIAttrDefs.cpp.inc"
Include the generated interface declarations.