This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Convert quantized dialect bytecode to generated.
ClosedPublic

Authored by jpienaar on Jun 4 2023, 4:02 PM.

Details

Summary

Serves as rather self-contained documentation for using the generator
from https://reviews.llvm.org/D144820.

Diff Detail

Event Timeline

jpienaar created this revision.Jun 4 2023, 4:02 PM
Herald added a project: Restricted Project. · View Herald Transcript
jpienaar requested review of this revision.Jun 4 2023, 4:02 PM
mehdi_amini accepted this revision.Jun 4 2023, 5:20 PM

Thanks for the doc :)

mlir/docs/DefiningDialects/_index.md
307

Can you start by mentioning that by default, bytecode serialization of types and attributes is still done with the regular textual format?

This revision is now accepted and ready to land.Jun 4 2023, 5:20 PM
This revision was landed with ongoing or failed builds.Jun 6 2023, 11:16 AM
This revision was automatically updated to reflect the committed changes.

It looks like the change to the .td file broke the Windows buildbot. https://lab.llvm.org/buildbot/#/builders/13/builds/36223/steps/6/logs/stdio

C:\buildbot\mlir-x64-windows-ninja\build\tools\mlir\include\mlir/Dialect/Quant/QuantDialectBytecode.cpp.inc(9): error C2220: the following warning is treated as an error
C:\buildbot\mlir-x64-windows-ninja\build\tools\mlir\include\mlir/Dialect/Quant/QuantDialectBytecode.cpp.inc(9): warning C4065: switch statement contains 'default' but no 'case' labels

Thanks for pinging, as mentioned please feel free to revert and then I'll resubmit with fix.

Sending out fix.