[PATCH] D88582: Bitcode: add some convenience helpers for streaming bitcode

Saleem Abdulrasool via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 30 08:36:33 PDT 2020


compnerd created this revision.
compnerd added reviewers: pcc, gribozavr2, MForster.
Herald added a project: LLVM.
compnerd requested review of this revision.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D88582

Files:
  llvm/include/llvm/Bitcode/BitcodeConvenience.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D88582.295301.patch
Type: text/x-patch
Size: 18680 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200930/7bbff33a/attachment.bin>


More information about the llvm-commits mailing list