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