llvm-project/llvm/tools/opt
Djordje Todorovic 1a2b3536ef Reland "[Debugify] Make the debugify aware of the original (-g) Debug Info"
As discussed on the RFC [0], I am sharing the set of patches that
    enables checking of original Debug Info metadata preservation in
    optimizations. The proof-of-concept/proposal can be found at [1].

    The implementation from the [1] was full of duplicated code,
    so this set of patches tries to merge this approach into the existing
    debugify utility.

    For example, the utility pass in the original-debuginfo-check
    mode could be invoked as follows:

      $ opt -verify-debuginfo-preserve -pass-to-test sample.ll

    Since this is very initial stage of the implementation,
    there is a space for improvements such as:
      - Add support for the new pass manager
      - Add support for metadata other than DILocations and DISubprograms

    [0] https://groups.google.com/forum/#!msg/llvm-dev/QOyF-38YPlE/G213uiuwCAAJ
    [1] https://github.com/djolertrk/llvm-di-checker

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

The test that was failing is now forced to use the old PM.
2021-02-18 23:29:22 -08:00
..
AnalysisWrappers.cpp [llvm][NFC][CallSite] Removed CallSite from some implementation details. 2020-04-15 22:27:05 -07:00
BreakpointPrinter.cpp
BreakpointPrinter.h
CMakeLists.txt Speculative fix for build breakage from D78403 2020-05-14 23:57:22 -04:00
GraphPrinters.cpp
NewPMDriver.cpp [opt][NewPM] Add a --print-passes flag to print all available passes 2021-02-10 11:22:12 -08:00
NewPMDriver.h [opt][NewPM] Add a --print-passes flag to print all available passes 2021-02-10 11:22:12 -08:00
PassPrinters.cpp [opt] Remove obsolete --quiet option 2020-07-08 13:21:20 -07:00
PassPrinters.h [opt] Remove obsolete --quiet option 2020-07-08 13:21:20 -07:00
PrintSCC.cpp [PrintSCC] Fix printing a basic-block without a name 2020-05-29 20:14:19 +03:00
opt.cpp Reland "[Debugify] Make the debugify aware of the original (-g) Debug Info" 2021-02-18 23:29:22 -08:00