This is an archive of the discontinued LLVM Phabricator instance.

Plumb write_bytecode to the Python API
ClosedPublic

Authored by mehdi_amini on Sep 2 2022, 8:18 AM.

Details

Summary

This adds a write_bytecode method to the Operation class.
The method takes a file handle and writes the binary blob to it.

Diff Detail

Event Timeline

mehdi_amini created this revision.Sep 2 2022, 8:18 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 2 2022, 8:18 AM
mehdi_amini requested review of this revision.Sep 2 2022, 8:18 AM

Add missing CMake dependency

ftynse accepted this revision.Sep 5 2022, 1:49 AM
ftynse added inline comments.
mlir/include/mlir-c/IR.h
525–526

Nit: the format feels off.

This revision is now accepted and ready to land.Sep 5 2022, 1:49 AM

Clang-format and rebase

This revision was landed with ongoing or failed builds.Sep 5 2022, 5:02 AM
This revision was automatically updated to reflect the committed changes.