APINotes: add bitcode format schema definitions
authorSaleem Abdulrasool <compnerd@compnerd.org>
Fri, 6 Nov 2020 00:01:20 +0000 (00:01 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Tue, 8 Dec 2020 21:15:41 +0000 (21:15 +0000)
commitb13f74151137f33327e0549adc9778aebf98a299
treebe07aa3f85999975bc853f60182bc9292602ac7d
parent939c8f676c871682dba8bab25ee4c0c08faf98e1
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
clang/lib/APINotes/APINotesFormat.h [new file with mode: 0644]