[all-commits] [llvm/llvm-project] 25ee86: [debugify] Move the Debugify pass from tools/opt t...

Daniel Sanders via All-commits all-commits at lists.llvm.org
Thu Nov 7 14:42:06 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 25ee861372f1b6f512fb1fc7c938267670cf0cab
      https://github.com/llvm/llvm-project/commit/25ee861372f1b6f512fb1fc7c938267670cf0cab
  Author: Daniel Sanders <daniel_l_sanders at apple.com>
  Date:   2019-11-07 (Thu, 07 Nov 2019)

  Changed paths:
    A llvm/include/llvm/Transforms/Utils/Debugify.h
    M llvm/lib/Transforms/Utils/CMakeLists.txt
    A llvm/lib/Transforms/Utils/Debugify.cpp
    M llvm/tools/opt/CMakeLists.txt
    R llvm/tools/opt/Debugify.cpp
    R llvm/tools/opt/Debugify.h
    M llvm/tools/opt/NewPMDriver.cpp
    M llvm/tools/opt/opt.cpp

  Log Message:
  -----------
  [debugify] Move the Debugify pass from tools/opt to lib/Transform/Utils

Summary:
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

Reviewers: vsk, aprantl

Subscribers: mgorny, hiraditya, llvm-commits

Tags: #llvm

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




More information about the All-commits mailing list