[all-commits] [llvm/llvm-project] e7f8b4: Add an MLIR example of some mimimal example of MLI...

Mehdi Amini via All-commits all-commits at lists.llvm.org
Tue Jul 25 11:38:36 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e7f8b459532de54a8606c7d387ded7ccf5108cb5
      https://github.com/llvm/llvm-project/commit/e7f8b459532de54a8606c7d387ded7ccf5108cb5
  Author: Mehdi Amini <joker.eph at gmail.com>
  Date:   2023-07-25 (Tue, 25 Jul 2023)

  Changed paths:
    M mlir/examples/CMakeLists.txt
    A mlir/examples/minimal-opt/CMakeLists.txt
    A mlir/examples/minimal-opt/README.md
    A mlir/examples/minimal-opt/mlir-cat.cpp
    A mlir/examples/minimal-opt/mlir-minimal-opt-canonicalize.cpp
    A mlir/examples/minimal-opt/mlir-minimal-opt.cpp
    M mlir/test/CMakeLists.txt

  Log Message:
  -----------
  Add an MLIR example of some mimimal example of MLIR setup

These may serve as example and showcase of the MLIR binary footprint.

Right now a release build of these tools on a linux machine shows:

- mlir-cat: 2MB
  This includes the Core IR, the textual parser/printer, the support for
  bytecode.
- mlir-minimal-opt: 3MB
  This adds all the tooling for an mlir-opt tool: the pass infrastructure
  and all the instrumentation associated with it.
- mlir-miminal-opt-canonicalize: 4.8MB
  This add the canonicalizer pass, which pulls in all the pattern/rewrite
  machinery, including the PDL compiler and intepreter.

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




More information about the All-commits mailing list