[all-commits] [llvm/llvm-project] ed5f4a: [mlir][bytecode] Add builtin dialect version (#184...

Jacques Pienaar via All-commits all-commits at lists.llvm.org
Sun Mar 8 19:25:24 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ed5f4afa2b5cbb7ec8b0e3ff1bff0ed2042c4e6d
      https://github.com/llvm/llvm-project/commit/ed5f4afa2b5cbb7ec8b0e3ff1bff0ed2042c4e6d
  Author: Jacques Pienaar <jacques+gh at japienaar.info>
  Date:   2026-03-09 (Mon, 09 Mar 2026)

  Changed paths:
    M mlir/include/mlir/Bytecode/BytecodeImplementation.h
    M mlir/include/mlir/IR/BuiltinDialect.h
    M mlir/include/mlir/IR/BuiltinDialect.td
    M mlir/lib/Bytecode/Reader/BytecodeReader.cpp
    M mlir/lib/IR/BuiltinDialectBytecode.cpp
    A mlir/unittests/IR/BuiltinDialectVersionTest.cpp
    M mlir/unittests/IR/CMakeLists.txt
    M utils/bazel/llvm-project-overlay/mlir/unittests/BUILD.bazel

  Log Message:
  -----------
  [mlir][bytecode] Add builtin dialect version (#184678)

This adds a singular Builtin dialect version for use with bytecode
serialization. This version is not currently print unless set and not 0
(not planned a bump until next LLVM version). Created a unit test as
this was easiest way to track.

Additionally add emitWarning virtual method to DialectBytecodeReader,
mirroring emitError.

Tested on old mlir-opt reader, and could read, so should be non-breaking
change.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list