[all-commits] [llvm/llvm-project] 04c66e: [mlir] Add simple jupyter kernel

Jacques Pienaar via All-commits all-commits at lists.llvm.org
Sun Feb 21 18:18:48 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 04c66edd3251975fd253e4c4b0e86ea56e8a7f46
      https://github.com/llvm/llvm-project/commit/04c66edd3251975fd253e4c4b0e86ea56e8a7f46
  Author: Jacques Pienaar <jpienaar at google.com>
  Date:   2021-02-21 (Sun, 21 Feb 2021)

  Changed paths:
    A mlir/utils/jupyter/.gitignore
    A mlir/utils/jupyter/README.md
    A mlir/utils/jupyter/mlir_opt_kernel/__init__.py
    A mlir/utils/jupyter/mlir_opt_kernel/__main__.py
    A mlir/utils/jupyter/mlir_opt_kernel/assets/kernel.js
    A mlir/utils/jupyter/mlir_opt_kernel/assets/kernel.json
    A mlir/utils/jupyter/mlir_opt_kernel/install.py
    A mlir/utils/jupyter/mlir_opt_kernel/kernel.py

  Log Message:
  -----------
  [mlir] Add simple jupyter kernel

Simple jupyter kernel using mlir-opt and reproducer to run passes.
Useful for local experimentation & generating examples. The export to
markdown from here is not immediately useful nor did I define a
CodeMirror synax to make the HTML output prettier. It only supports one
level of history (e.g., `_`) as I was mostly using with expanding a
pipeline one pass at a time and so was all I needed.

I placed this in utils directory next to editor & debugger utils.

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




More information about the All-commits mailing list