This is an archive of the discontinued LLVM Phabricator instance.

[mlir][quant] Initial bytecode encoding for quantized types
ClosedPublic

Authored by jpienaar on Oct 14 2022, 5:22 PM.

Details

Summary

Add bytecode encoding for quantized types. These mostly follow the
storage representation of these.

Diff Detail

Event Timeline

jpienaar created this revision.Oct 14 2022, 5:22 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 14 2022, 5:22 PM
jpienaar requested review of this revision.Oct 14 2022, 5:22 PM
rriddle accepted this revision.Oct 14 2022, 5:47 PM

LG. We may want to consider an easier way to write a var length double/float/etc to simplify the calls to APFloatWithKnownSemantics.

mlir/lib/Dialect/Quant/IR/QuantDialectBytecode.cpp
171–174

Might be nice to merge some of the decls.

230

Same here.

267

Same here.

This revision is now accepted and ready to land.Oct 14 2022, 5:47 PM
jpienaar marked 3 inline comments as done.Oct 17 2022, 3:49 PM

LG. We may want to consider an easier way to write a var length double/float/etc to simplify the calls to APFloatWithKnownSemantics.

Agreed.

This revision was landed with ongoing or failed builds.Oct 17 2022, 4:29 PM
This revision was automatically updated to reflect the committed changes.