[Metadata] Introduce MD_pcsections
authorMarco Elver <elver@google.com>
Tue, 6 Sep 2022 13:48:23 +0000 (15:48 +0200)
committerMarco Elver <elver@google.com>
Tue, 6 Sep 2022 13:52:44 +0000 (15:52 +0200)
commitc70f6e1362e38f36dceca0342490d659aa45a1a5
tree5082f3254a4909cfbad109f0813822954d07bc01
parente1ebe476e45a677535f8cae3cc9f7fb84f477fdd
[Metadata] Introduce MD_pcsections

Introduces MD_pcsections metadata kind. See added documentation for
more details.

Subsequent patches enable propagating PC sections metadata through code
generation to the AsmPrinter.

RFC: https://discourse.llvm.org/t/rfc-pc-keyed-metadata-at-runtime/64191

Reviewed By: dvyukov, vitalybuka

Differential Revision: https://reviews.llvm.org/D130875
llvm/docs/PCSectionsMetadata.rst [new file with mode: 0644]
llvm/docs/Reference.rst
llvm/include/llvm/IR/FixedMetadataKinds.def
llvm/include/llvm/IR/MDBuilder.h
llvm/lib/IR/MDBuilder.cpp
llvm/unittests/IR/MDBuilderTest.cpp