This is an archive of the discontinued LLVM Phabricator instance.

Use symbolic name for previous MLIR Bytecode versions
ClosedPublic

Authored by mehdi_amini on May 27 2023, 5:11 PM.

Diff Detail

Event Timeline

mehdi_amini created this revision.May 27 2023, 5:11 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 27 2023, 5:11 PM
mehdi_amini requested review of this revision.May 27 2023, 5:11 PM
burmako added inline comments.May 27 2023, 5:16 PM
mlir/include/mlir/Bytecode/Encoding.h
46

Very nice! I think this will convention will considerably simplify maintenance and minimize the effort needed to rebase bytecode-related patches on top of other bytecode-related patches.

mlir/lib/Bytecode/Reader/BytecodeReader.cpp
1701–1702

This is one my first upstream reviews, so I'm not sure what the convention is, but you may want to reformat lines like this one to fit into 80 characters.

mlir/lib/Bytecode/Writer/BytecodeWriter.cpp
735

How about config.bytecodeVersion >= bytecode::kElideUnknownBlockArgLocation?

burmako accepted this revision.May 27 2023, 6:23 PM
This revision is now accepted and ready to land.May 27 2023, 6:23 PM

clang-format

Address comment: fix one comparison

mehdi_amini marked 3 inline comments as done.May 27 2023, 8:16 PM
mehdi_amini added inline comments.
mlir/lib/Bytecode/Reader/BytecodeReader.cpp
1701–1702

Uh, somehow arc lint does not work on my laptop :(
(usually clang-format runs automatically when I create a revision)

jpienaar accepted this revision.May 28 2023, 8:31 AM

Nice, serves as a version log too. Could we do something so that doxygen generates a nice table for it?

mehdi_amini marked an inline comment as done.Jun 6 2023, 1:18 AM

Doxygen will print a table:

This revision was automatically updated to reflect the committed changes.