[PATCH] D69926: [debugify] Move the Debugify pass from tools/opt to lib/Transform/Utils

Daniel Sanders via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 6 16:11:08 PST 2019


dsanders created this revision.
dsanders added reviewers: vsk, aprantl.
Herald added subscribers: hiraditya, mgorny.
Herald added a project: LLVM.

I need to make use of this pass from a driver program that isn't opt.
Therefore this patch moves this pass into the LLVM library so that it is
available for use elsewhere.

There was one function I kept in tools/opt which is exportDebugifyStats()
this is because it's serializing the statistics into a human readable
format and this seemed more in keeping with opt than a library function


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D69926

Files:
  llvm/include/llvm/Transforms/Utils/Debugify.h
  llvm/lib/Transforms/Utils/CMakeLists.txt
  llvm/lib/Transforms/Utils/Debugify.cpp
  llvm/tools/opt/Debugify.cpp
  llvm/tools/opt/Debugify.h
  llvm/tools/opt/NewPMDriver.cpp
  llvm/tools/opt/opt.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D69926.228165.patch
Type: text/x-patch
Size: 5909 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191107/2f165d3f/attachment.bin>


More information about the llvm-commits mailing list