[all-commits] [llvm/llvm-project] 939c8f: Bitcode: add some convenience helpers for streamin...

Saleem Abdulrasool via All-commits all-commits at lists.llvm.org
Tue Dec 8 13:16:02 PST 2020


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 939c8f676c871682dba8bab25ee4c0c08faf98e1
      https://github.com/llvm/llvm-project/commit/939c8f676c871682dba8bab25ee4c0c08faf98e1
  Author: Saleem Abdulrasool <compnerd at compnerd.org>
  Date:   2020-12-08 (Tue, 08 Dec 2020)

  Changed paths:
    A llvm/include/llvm/Bitcode/BitcodeConvenience.h

  Log Message:
  -----------
  Bitcode: add some convenience helpers for streaming bitcode

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.

Differential Revision: https://reviews.llvm.org/D88582


  Commit: b13f74151137f33327e0549adc9778aebf98a299
      https://github.com/llvm/llvm-project/commit/b13f74151137f33327e0549adc9778aebf98a299
  Author: Saleem Abdulrasool <compnerd at compnerd.org>
  Date:   2020-12-08 (Tue, 08 Dec 2020)

  Changed paths:
    A clang/lib/APINotes/APINotesFormat.h

  Log Message:
  -----------
  APINotes: add bitcode format schema definitions

This adds the bitcode format schema required for serialization of the
YAML data to a binary format.  APINotes are pre-compiled and re-used in
the binary format from the frontend.  These definitions provide the data
layout representation enabling writing (and eventually) reading of the
data in bitcode format.

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

Differential Revision: https://reviews.llvm.org/D91997
Reviewed By: Gabor Marton


Compare: https://github.com/llvm/llvm-project/compare/843f2dbf003f...b13f74151137


More information about the All-commits mailing list