diff options
author | Tuowen Zhao <ztuowen@gmail.com> | 2019-04-27 19:05:25 -0600 |
---|---|---|
committer | Tuowen Zhao <ztuowen@gmail.com> | 2019-04-27 19:05:25 -0600 |
commit | 0781257b2a8d544abdcce38824a9b8288a04800d (patch) | |
tree | 365cea96de343e354913f90b35fc944e4459b2e9 /toy/RegisterDialects.cpp | |
parent | 4127831a28e31ac53ffdb1d7e7a88dd7d6317c6e (diff) | |
download | mlir-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.cpp | 10 |
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; |