summaryrefslogtreecommitdiff
path: root/mlir/lib/CAPI/Dialect/OpenMP.cpp
diff options
context:
space:
mode:
authormax <maksim.levental@gmail.com>2023-08-23 17:41:04 -0500
committermax <maksim.levental@gmail.com>2023-08-23 18:17:04 -0500
commit2b664d678dcd6b23eda992b45d009788e34ea8f1 (patch)
treec57270e78a0ebb905d2264e77a0d13d5047cd5be /mlir/lib/CAPI/Dialect/OpenMP.cpp
parent8a02fd3f94ff706c88cec14f1501cac6b6248162 (diff)
[mlir][python bindings] turn on openmp
Just as in https://reviews.llvm.org/D157820, dialect registration is independent of any vendor specific libs having been linked/built/etc. Reviewed By: rkayaith Differential Revision: https://reviews.llvm.org/D158670
Diffstat (limited to 'mlir/lib/CAPI/Dialect/OpenMP.cpp')
-rw-r--r--mlir/lib/CAPI/Dialect/OpenMP.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/mlir/lib/CAPI/Dialect/OpenMP.cpp b/mlir/lib/CAPI/Dialect/OpenMP.cpp
new file mode 100644
index 000000000000..3ffa57ab575f
--- /dev/null
+++ b/mlir/lib/CAPI/Dialect/OpenMP.cpp
@@ -0,0 +1,16 @@
+//===- OPENMP.cpp - C Interface for OPENMP dialect
+//------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#include "mlir-c/Dialect/OpenMP.h"
+#include "mlir/CAPI/Registration.h"
+#include "mlir/Dialect/OpenMP/OpenMPDialect.h"
+
+using namespace mlir;
+
+MLIR_DEFINE_CAPI_DIALECT_REGISTRATION(OpenMP, omp, omp::OpenMPDialect)