summaryrefslogtreecommitdiff
path: root/mlir/test/python/lib/PythonTestCAPI.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mlir/test/python/lib/PythonTestCAPI.cpp')
-rw-r--r--mlir/test/python/lib/PythonTestCAPI.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/mlir/test/python/lib/PythonTestCAPI.cpp b/mlir/test/python/lib/PythonTestCAPI.cpp
new file mode 100644
index 000000000000..474476e74198
--- /dev/null
+++ b/mlir/test/python/lib/PythonTestCAPI.cpp
@@ -0,0 +1,14 @@
+//===- PythonTestCAPI.cpp - C API for the PythonTest 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 "PythonTestCAPI.h"
+#include "PythonTestDialect.h"
+#include "mlir/CAPI/Registration.h"
+
+MLIR_DEFINE_CAPI_DIALECT_REGISTRATION(PythonTest, python_test,
+ python_test::PythonTestDialect)