[PATCH] D133055: [MachineFunctionPass] Support -filter-passes for -print-changed

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 31 14:32:44 PDT 2022


MaskRay created this revision.
MaskRay added reviewers: aeubanks, jamieschmeiser, rlavaee.
Herald added subscribers: StephenFan, hiraditya, kristof.beyls.
Herald added a project: All.
MaskRay requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

-filter-passes specifies a `PassID` (a lower-case dashed-separated pass name)
instead of a CamelCasePass like the new pass manager -filter-passes.

Example:

  # getPassName() is "IRTranslator". PassID is "irtranslator"
  llc -mtriple=aarch64 -print-changed -filter-passes=irtranslator < print-changed-machine.ll

Close https://github.com/llvm/llvm-project/issues/57453


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D133055

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D133055.457091.patch
Type: text/x-patch
Size: 8610 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220831/1f21ec90/attachment.bin>


More information about the llvm-commits mailing list