[PATCH] D77133: [mlir] Add an out-of-tree dialect example
Jean-Michel Gorius via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 31 04:23:55 PDT 2020
Kayjukh created this revision.
Kayjukh added reviewers: stephenneuendorffer, bondhugula, lattner.
Herald added subscribers: llvm-commits, grosul1, Joonsoo, liufengdb, aartbik, lucyrfox, mgester, arpith-jacob, nicolasvasilache, antiagainst, shauheen, burmako, jpienaar, rriddle, mehdi_amini, mgorny.
Herald added a project: LLVM.
Kayjukh edited the summary of this revision.
Kayjukh retitled this revision from "Add an out-of-tree dialect example" to "[mlir] Add an out-of-tree dialect example".
This adds a minimal out-of-tree dialect template which can be used to start work on a standalone dialect implementation without having to integrate it in the main LLVM tree.
It mostly sets up the directory structure and provides CMakeLists.txt files to build a dialect library, an opt-like tool to operate on that dialect as well as tests. It could be expanded in the future to add examples of user-defined operations, types, attributes, generated enums, transforms, etc. and linked to a tutorial.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D77133
Files:
mlir/examples/standalone/CMakeLists.txt
mlir/examples/standalone/README.md
mlir/examples/standalone/include/CMakeLists.txt
mlir/examples/standalone/include/Standalone/CMakeLists.txt
mlir/examples/standalone/include/Standalone/StandaloneDialect.h
mlir/examples/standalone/include/Standalone/StandaloneDialect.td
mlir/examples/standalone/include/Standalone/StandaloneOps.h
mlir/examples/standalone/include/Standalone/StandaloneOps.td
mlir/examples/standalone/lib/CMakeLists.txt
mlir/examples/standalone/lib/Standalone/CMakeLists.txt
mlir/examples/standalone/lib/Standalone/StandaloneDialect.cpp
mlir/examples/standalone/lib/Standalone/StandaloneOps.cpp
mlir/examples/standalone/standalone-opt/CMakeLists.txt
mlir/examples/standalone/standalone-opt/standalone-opt.cpp
mlir/examples/standalone/test/CMakeLists.txt
mlir/examples/standalone/test/Standalone/dummy.mlir
mlir/examples/standalone/test/lit.cfg.py
mlir/examples/standalone/test/lit.site.cfg.py.in
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D77133.253828.patch
Type: text/x-patch
Size: 20210 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200331/99d282ae/attachment-0001.bin>
More information about the llvm-commits
mailing list