HomePhabricator

APINotes: add bitcode format schema definitions

Authored by compnerd on Nov 5 2020, 4:01 PM.

Description

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

Details

Committed
compnerdDec 8 2020, 1:15 PM
Differential Revision
D91997: APINotes: add bitcode format schema definitions
Parents
rG939c8f676c87: Bitcode: add some convenience helpers for streaming bitcode
Branches
Unknown
Tags
Unknown