[all-commits] [llvm/llvm-project] 8d95fd: [MachineFunctionPass] Support -filter-passes for -...
Fangrui Song via All-commits
all-commits at lists.llvm.org
Thu Sep 1 11:06:24 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 8d95fd7e56bed7d3a3260bed7117023968f8be3c
https://github.com/llvm/llvm-project/commit/8d95fd7e56bed7d3a3260bed7117023968f8be3c
Author: Fangrui Song <i at maskray.me>
Date: 2022-09-01 (Thu, 01 Sep 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
M llvm/test/Other/ChangePrinters/print-changed-diff-machine.ll
M llvm/test/Other/print-changed-machine.ll
Log Message:
-----------
[MachineFunctionPass] Support -filter-passes for -print-changed
[MachineFunctionPass] Support -filter-passes for -print-changed
-filter-passes specifies a `PassID` (a lower-case dashed-separated pass name,
also used by -print-after, -stop-after, etc) instead of a CamelCasePass.
`-filter-passes=CamelCaseNewPMPass` seems like a workaround for new PM passes before
we can use lower-case dashed-separated pass names (as used by `-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
Reviewed By: aeubanks
Differential Revision: https://reviews.llvm.org/D133055
More information about the All-commits
mailing list