[all-commits] [llvm/llvm-project] f97ea7: [Utils] Added the ability to print the pass number...

Dmitry Bakunevich via All-commits all-commits at lists.llvm.org
Fri May 26 03:36:48 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f97ea77506aaee42af856bfde4d4fb3cc4311c12
      https://github.com/llvm/llvm-project/commit/f97ea77506aaee42af856bfde4d4fb3cc4311c12
  Author: dbakunevich <dbakunevich at azul.com>
  Date:   2023-05-26 (Fri, 26 May 2023)

  Changed paths:
    M llvm/include/llvm/Passes/StandardInstrumentations.h
    M llvm/lib/Passes/StandardInstrumentations.cpp
    A llvm/test/Other/print-at-pass-number.ll

  Log Message:
  -----------
  [Utils] Added the ability to print the pass number and IR after it is triggered

As part of this patch, 2 options have been added:
print-pass-numbers and print-after-pass-number.

1) The print-pass-numbers option allows to print the pass names and their ordinals.
   The output of the option looks like this:
                Running pass ORDINAL PASS_NAME

2) The print-after-pass-number option allows to print IR after pass with the number
   which reported by print-passes-names.

Reviewed By: apilipenko, aeubanks

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




More information about the All-commits mailing list