[PATCH] D69141: [Remarks] Add support for linking remarks

Francis Visoiu Mistrih via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 17 14:37:20 PDT 2019


thegameg created this revision.
thegameg added reviewers: paquette, anemet, JDevlieghere, hfinkel.
Herald added subscribers: hiraditya, mgorny.
Herald added a project: LLVM.
thegameg added a parent revision: D69142: [dsymutil] Add support for linking remarks.

Remarks are usually emitted per-TU, and for generating a standalone remark file that can be shipped with the linked binary we need some kind of tool to merge everything together.

The remarks::RemarkLinker class takes care of this and:

- Deduplicates remarks
- Filters remarks with no debug location
- Merges string tables from all the entries

As an output, it provides an iterator range that can be used to serialize the remarks to a file.


https://reviews.llvm.org/D69141

Files:
  llvm/include/llvm/Remarks/Remark.h
  llvm/include/llvm/Remarks/RemarkFormat.h
  llvm/include/llvm/Remarks/RemarkLinker.h
  llvm/lib/Remarks/CMakeLists.txt
  llvm/lib/Remarks/RemarkFormat.cpp
  llvm/lib/Remarks/RemarkLinker.cpp
  llvm/unittests/Remarks/CMakeLists.txt
  llvm/unittests/Remarks/RemarksLinkingTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D69141.225514.patch
Type: text/x-patch
Size: 21171 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191017/e236896e/attachment.bin>


More information about the llvm-commits mailing list