[all-commits] [llvm/llvm-project] f10652: [MachineFunctionPass] Support -print-changed and -...

Fangrui Song via All-commits all-commits at lists.llvm.org
Tue Jul 26 10:17:02 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f106525de2bb1be9cd055c45de6d9cf1b46b3c45
      https://github.com/llvm/llvm-project/commit/f106525de2bb1be9cd055c45de6d9cf1b46b3c45
  Author: Fangrui Song <i at maskray.me>
  Date:   2022-07-26 (Tue, 26 Jul 2022)

  Changed paths:
    M llvm/include/llvm/IR/PrintPasses.h
    M llvm/lib/CodeGen/MachineFunctionPass.cpp
    M llvm/lib/IR/PrintPasses.cpp
    M llvm/lib/Passes/StandardInstrumentations.cpp
    A llvm/test/Other/print-changed-machine.ll

  Log Message:
  -----------
  [MachineFunctionPass] Support -print-changed and -print-changed=quiet

-print-changed for new pass manager is handy beside -print-after-all.
Port it to MachineFunctionPass.

Note: lib/Passes/StandardInstrumentations.cpp implements a number of
misc features. If we want to use them for codegen, we may need to lift
some functionality to LLVMIR.

Reviewed By: aeubanks, jamieschmeiser

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




More information about the All-commits mailing list