aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorYann Herklotz <git@yannherklotz.com>2022-09-26 19:08:01 +0100
committerYann Herklotz <git@yannherklotz.com>2022-09-26 19:08:48 +0100
commit0034f32d6d85d7f21cf04c82083860cdb2fe1ddb (patch)
treef37f65190acd6040a262cdb7d2dbf6e2b17556f5 /lib
parentb018c1ef00eade87c9efbf48cc2e3466877ea79d (diff)
downloadgsa-mlir-master.tar.gz
gsa-mlir-master.zip
Update MLIR files and include LLVM directoryHEADmaster
Diffstat (limited to 'lib')
-rw-r--r--lib/CAPI/CMakeLists.txt5
-rw-r--r--lib/CAPI/Dialects.cpp15
-rw-r--r--lib/CMakeLists.txt1
-rw-r--r--lib/Standalone/CMakeLists.txt1
4 files changed, 22 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)
diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt
index da11071..d91434b 100644
--- a/lib/CMakeLists.txt
+++ b/lib/CMakeLists.txt
@@ -1 +1,2 @@
+add_subdirectory(CAPI)
add_subdirectory(Standalone)
diff --git a/lib/Standalone/CMakeLists.txt b/lib/Standalone/CMakeLists.txt
index c8b16b7..eadc695 100644
--- a/lib/Standalone/CMakeLists.txt
+++ b/lib/Standalone/CMakeLists.txt
@@ -10,4 +10,5 @@ add_mlir_dialect_library(MLIRStandalone
LINK_LIBS PUBLIC
MLIRIR
+ MLIRInferTypeOpInterface
)