[all-commits] [llvm/llvm-project] 0e7199: Replace print-at-pass-number cl::opt with print-be...

arpilipe via All-commits all-commits at lists.llvm.org
Mon Jan 8 08:55:04 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0e7199cf3d08c83d18549c9cd083e9fec6e9db54
      https://github.com/llvm/llvm-project/commit/0e7199cf3d08c83d18549c9cd083e9fec6e9db54
  Author: arpilipe <apilipenko at azul.com>
  Date:   2024-01-08 (Mon, 08 Jan 2024)

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

  Log Message:
  -----------
  Replace print-at-pass-number cl::opt with print-before-pass-number (#76211)

The existing option prints the IR after the pass, but it's not clear
from its name. In this patch I change the option to print the IR before
the pass and change the name to make the behavior clear.

Printing the IR before the pass is slightly simpler than after as I
don't need to worry about printAfterPassInvalidated case. Either before
or after the pass would be ok for the original use case this option was
introduced for.




More information about the All-commits mailing list