1 //===- OpenMPDialect.cpp - MLIR Dialect for OpenMP 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 //
9 // This file implements the OpenMP dialect and its operations.
10 //
11 //===----------------------------------------------------------------------===//
12 
13 #include "mlir/Dialect/OpenMP/OpenMPDialect.h"
14 #include "mlir/IR/OpImplementation.h"
15 
16 using namespace mlir;
17 using namespace mlir::omp;
18 
19 OpenMPDialect::OpenMPDialect(MLIRContext *context)
20     : Dialect(getDialectNamespace(), context) {
21   addOperations<
22 #define GET_OP_LIST
23 #include "mlir/Dialect/OpenMP/OpenMPOps.cpp.inc"
24       >();
25 }
26 
27 namespace mlir {
28 namespace omp {
29 #define GET_OP_CLASSES
30 #include "mlir/Dialect/OpenMP/OpenMPOps.cpp.inc"
31 } // namespace omp
32 } // namespace mlir
33