[all-commits] [llvm/llvm-project] 091155: [mlir] Dialect type/attr bytecode read/write gener...

Jacques Pienaar via All-commits all-commits at lists.llvm.org
Mon Apr 24 11:54:13 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 09115580056fc57d5cdaa1de20631a838a4ea1c4
      https://github.com/llvm/llvm-project/commit/09115580056fc57d5cdaa1de20631a838a4ea1c4
  Author: Jacques Pienaar <jpienaar at google.com>
  Date:   2023-04-24 (Mon, 24 Apr 2023)

  Changed paths:
    M mlir/include/mlir/Bytecode/BytecodeImplementation.h
    A mlir/include/mlir/IR/BuiltinDialectBytecode.td
    A mlir/include/mlir/IR/BytecodeBase.td
    M mlir/include/mlir/IR/CMakeLists.txt
    M mlir/lib/IR/BuiltinDialectBytecode.cpp
    M mlir/lib/IR/CMakeLists.txt
    A mlir/tools/mlir-tblgen/BytecodeDialectGen.cpp
    M mlir/tools/mlir-tblgen/CMakeLists.txt
    M utils/bazel/llvm-project-overlay/mlir/BUILD.bazel

  Log Message:
  -----------
  [mlir] Dialect type/attr bytecode read/write generator.

Tool to help generate dialect bytecode Attribute & Type reader/writing.
Show usage by flipping builtin dialect.

It helps reduce boilerplate when writing dialect bytecode attribute and
type readers/writers. It is not an attempt at a generic spec mechanism
but rather practically focussing on boilerplate reduction while also
considering that it need not be the only in memory format and make it
relatively easy to change.

There should be some cleanup in follow up as we expand to more dialects.

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




More information about the All-commits mailing list