diff options
Diffstat (limited to 'lib/CAPI')
-rw-r--r-- | lib/CAPI/CMakeLists.txt | 5 | ||||
-rw-r--r-- | lib/CAPI/Dialects.cpp | 15 |
2 files changed, 20 insertions, 0 deletions
diff --git a/lib/CAPI/CMakeLists.txt b/lib/CAPI/CMakeLists.txt new file mode 100644 index 0000000..3124f55 --- /dev/null +++ b/lib/CAPI/CMakeLists.txt @@ -0,0 +1,5 @@ +add_mlir_public_c_api_library(StandaloneCAPI + Dialects.cpp + LINK_LIBS PUBLIC + MLIRStandalone +) diff --git a/lib/CAPI/Dialects.cpp b/lib/CAPI/Dialects.cpp new file mode 100644 index 0000000..98006e8 --- /dev/null +++ b/lib/CAPI/Dialects.cpp @@ -0,0 +1,15 @@ +//===- Dialects.cpp - CAPI for dialects -----------------------------------===// +// +// 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 "Standalone-c/Dialects.h" + +#include "Standalone/StandaloneDialect.h" +#include "mlir/CAPI/Registration.h" + +MLIR_DEFINE_CAPI_DIALECT_REGISTRATION(Standalone, standalone, + mlir::standalone::StandaloneDialect) |