[all-commits] [llvm/llvm-project] 4b661b: Introduce -print-changed=[diff | diff-quiet] which...

jamieschmeiser via All-commits all-commits at lists.llvm.org
Mon Feb 8 07:12:03 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4b661b4059b0b5fa8594a0717df208a122ea15da
      https://github.com/llvm/llvm-project/commit/4b661b4059b0b5fa8594a0717df208a122ea15da
  Author: Jamie Schmeiser <schmeise at ca.ibm.com>
  Date:   2021-02-08 (Mon, 08 Feb 2021)

  Changed paths:
    M llvm/include/llvm/Passes/StandardInstrumentations.h
    M llvm/lib/Passes/StandardInstrumentations.cpp
    A llvm/test/Other/ChangePrinters/lit.local.cfg
    A llvm/test/Other/ChangePrinters/print-changed-diff.ll

  Log Message:
  -----------
  Introduce -print-changed=[diff | diff-quiet] which show changes in patch-like format
Summary:
Introduce base classes that hold a textual represent of the IR
based on basic blocks and a base class for comparing this
representation.  A new change printer is introduced that uses these
classes to save and compare representations of the IR before and after
each pass.  It only reports when changes are made by a pass (similar to
-print-changed) except that the changes are shown in a patch-like format
with those lines that are removed shown in red prefixed with '-' and those
added shown in green with '+'.  This functionality was introduced in my
tutorial at the 2020 virtual developer's meeting.

Author: Jamie Schmeiser <schmeise at ca.ibm.com>
Reviewed By: aeubanks (Arthur Eubanks)
Differential Revision: https://reviews.llvm.org/D91890




More information about the All-commits mailing list