[all-commits] [llvm/llvm-project] 160f5a: [mlir] Add an out-of-tree dialect example

Jean-Michel Gorius via All-commits all-commits at lists.llvm.org
Sat Apr 4 10:17:22 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 160f5aa65fac07d77dc7e7ef715c95b018ac15c9
      https://github.com/llvm/llvm-project/commit/160f5aa65fac07d77dc7e7ef715c95b018ac15c9
  Author: Jean-Michel Gorius <jean-michel.gorius at ens-rennes.fr>
  Date:   2020-04-04 (Sat, 04 Apr 2020)

  Changed paths:
    A mlir/examples/standalone/CMakeLists.txt
    A mlir/examples/standalone/README.md
    A mlir/examples/standalone/include/CMakeLists.txt
    A mlir/examples/standalone/include/Standalone/CMakeLists.txt
    A mlir/examples/standalone/include/Standalone/StandaloneDialect.h
    A mlir/examples/standalone/include/Standalone/StandaloneDialect.td
    A mlir/examples/standalone/include/Standalone/StandaloneOps.h
    A mlir/examples/standalone/include/Standalone/StandaloneOps.td
    A mlir/examples/standalone/lib/CMakeLists.txt
    A mlir/examples/standalone/lib/Standalone/CMakeLists.txt
    A mlir/examples/standalone/lib/Standalone/StandaloneDialect.cpp
    A mlir/examples/standalone/lib/Standalone/StandaloneOps.cpp
    A mlir/examples/standalone/standalone-opt/CMakeLists.txt
    A mlir/examples/standalone/standalone-opt/standalone-opt.cpp
    A mlir/examples/standalone/test/CMakeLists.txt
    A mlir/examples/standalone/test/Standalone/dummy.mlir
    A mlir/examples/standalone/test/lit.cfg.py
    A mlir/examples/standalone/test/lit.site.cfg.py.in

  Log Message:
  -----------
  [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 more user-defined operations, types, attributes, generated enums, transforms, etc. and linked to a tutorial.

Differential Revision: https://reviews.llvm.org/D77133




More information about the All-commits mailing list