[all-commits] [llvm/llvm-project] e72e59: [Remarks] Add support for linking remarks

Visoiu Mistrih Francis via All-commits all-commits at lists.llvm.org
Thu Oct 31 15:28:03 PDT 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: e72e59e90287c50539cb2c0afbf197aa0101a023
      https://github.com/llvm/llvm-project/commit/e72e59e90287c50539cb2c0afbf197aa0101a023
  Author: Francis Visoiu Mistrih <francisvm at yahoo.com>
  Date:   2019-10-31 (Thu, 31 Oct 2019)

  Changed paths:
    M llvm/include/llvm/Remarks/Remark.h
    M llvm/include/llvm/Remarks/RemarkFormat.h
    A llvm/include/llvm/Remarks/RemarkLinker.h
    M llvm/lib/Remarks/CMakeLists.txt
    M llvm/lib/Remarks/RemarkFormat.cpp
    A llvm/lib/Remarks/RemarkLinker.cpp
    M llvm/unittests/Remarks/CMakeLists.txt
    A llvm/unittests/Remarks/RemarksLinkingTest.cpp

  Log Message:
  -----------
  [Remarks] 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.

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




More information about the All-commits mailing list