[llvm-dev] [RFC] Refactor llvm-dwp in to a library.

Alexander Yermolovich via llvm-dev llvm-dev at lists.llvm.org
Mon Jun 21 18:11:55 PDT 2021


Hello

I am working on adding support for bolt (https://github.com/facebookincubator/BOLT/tree/rebased) to write out DWP directly.  I want to re-use as much llvm-dwp functionality as possible.
Plan is to move most of functionality that is now in llvm-dwp in to llvm/lib/DWP, with corresponding header file in llvm/include/llvm/DWP.
In the header files have
getContributionIndex
handleSection
parseCompileUnitHeader
writeStringsAndOffsets
getCUIdentifiers
buildDuplicateError
writeIndex

For structs that are passed around define in the header also.
UnitIndexEntry
CompileUnitHeader
CompileUnitIdentifiers


Thought I would solicit opinions before I dive too deep into this.

Thank You
Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20210622/6822dc74/attachment-0001.html>


More information about the llvm-dev mailing list