[PATCH] D46525: [Debugify] Introduce debugify-each and DebugifyFunctionPass

Son Tuan Vu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 7 06:59:01 PDT 2018


tyb0807 created this revision.
tyb0807 added reviewers: vsk, gramanas.
Herald added a subscriber: llvm-commits.

Hi,

As discussed in this thread on the mailing list http://lists.llvm.org/pipermail/llvm-dev/2018-April/122785.html, here's my attempt to implement a `debugify-each` mode and to create a `DebugifyFunctionPass`.

If you are ok with this approach, I will implement a `DebugifyBasicBlockPass`, a `DebugifyLoopPass` and a `DebugifyRegionPass` likewise.

Another TODO is to make `debugify-each` as well as Debugify passes other than `DebugifyModulePass` work with the new Pass Manager, but this is not necessary for the GSoC (-O1/2/3/s/z optimization pipelines are handled by the LegacyPassManager). But I am willing to tackle it if you do not have anything against.

This is my first major patch, so please forgive me if I've done anything wrong...

Thank you all for your help


Repository:
  rL LLVM

https://reviews.llvm.org/D46525

Files:
  test/DebugInfo/debugify.ll
  test/Transforms/Mem2Reg/PromoteMemToRegister.ll
  tools/opt/Debugify.cpp
  tools/opt/PassPrinters.h
  tools/opt/opt.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46525.145457.patch
Type: text/x-patch
Size: 25597 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180507/306fb230/attachment.bin>


More information about the llvm-commits mailing list