This is an archive of the discontinued LLVM Phabricator instance.

Bitcode: add some convenience helpers for streaming bitcode
ClosedPublic

Authored by compnerd on Sep 30 2020, 8:36 AM.

Details

Summary

This adds a set of metaprogramming helpers to help define records and
serialize them out. This is motivated by API Notes which use the
bitcode format to serialize out a binary representation of the data.
These helpers are generically useful though and could help simplify some
of the existing bitcode consumers as well.

This is extracted from the code contributed by Apple at
https://github.com/llvm/llvm-project-staging/tree/staging/swift/apinotes.

Diff Detail

Event Timeline

compnerd created this revision.Sep 30 2020, 8:36 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 30 2020, 8:36 AM
compnerd requested review of this revision.Sep 30 2020, 8:36 AM
compnerd edited subscribers, added: doug.gregor; removed: dougallj.
This revision was not accepted when it landed; it landed in state Needs Review.Dec 8 2020, 1:16 PM
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.