summaryrefslogtreecommitdiff
path: root/toy/RegisterDialects.cpp
diff options
context:
space:
mode:
authorTuowen Zhao <ztuowen@gmail.com>2019-04-27 19:05:25 -0600
committerTuowen Zhao <ztuowen@gmail.com>2019-04-27 19:05:25 -0600
commit0781257b2a8d544abdcce38824a9b8288a04800d (patch)
tree365cea96de343e354913f90b35fc944e4459b2e9 /toy/RegisterDialects.cpp
parent4127831a28e31ac53ffdb1d7e7a88dd7d6317c6e (diff)
downloadmlir-toy-0781257b2a8d544abdcce38824a9b8288a04800d.tar.gz
mlir-toy-0781257b2a8d544abdcce38824a9b8288a04800d.tar.bz2
mlir-toy-0781257b2a8d544abdcce38824a9b8288a04800d.zip
Split toy dialect using static registration
Diffstat (limited to 'toy/RegisterDialects.cpp')
-rw-r--r--toy/RegisterDialects.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/toy/RegisterDialects.cpp b/toy/RegisterDialects.cpp
new file mode 100644
index 0000000..7314cb2
--- /dev/null
+++ b/toy/RegisterDialects.cpp
@@ -0,0 +1,10 @@
+//
+// Created by ztuowen on 4/27/19.
+//
+
+#include "mlir/IR/Dialect.h"
+#include "toy/Dialect.h"
+#include "linalg1/Dialect.h"
+
+static mlir::DialectRegistration<toy::ToyDialect> Toy;
+static mlir::DialectRegistration<linalg::LinalgDialect> Linalg;