[PATCH] D54794: [NewPM] -print-before/-print-after support for new pass manager
Fedor Sergeev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 21 06:01:31 PST 2018
fedor.sergeev created this revision.
fedor.sergeev added reviewers: chandlerc, philip.pfaffe, apilipenko, mkazantsev, skatkov.
Herald added subscribers: mgrang, eraman, mehdi_amini.
Majority of this fix is an enhancement for PassNameParser to
allow -print-before/after to take arbitrary strings, not just those
corresponding to legacy pass option names.
PassNameParser was converted to a template that takes boolean argument
'AllowArbitraryNames' that allows to just accept names that do not
match legacy passes.
One important consequence of this implementation change is that there
is no checking for errors in legacy pass names in -print-before/-print-after.
Other options that use PassNameParser do not set AllowArbitraryNames to true
and thus continue to check its values for errors.
Repository:
rL LLVM
https://reviews.llvm.org/D54794
Files:
include/llvm/IR/LegacyPassNameParser.h
lib/IR/LegacyPassManager.cpp
lib/IR/Pass.cpp
test/Other/loop-pass-printer.ll
test/Other/print-module-scope.ll
test/Other/scc-deleted-printer.ll
test/Other/scc-pass-printer.ll
test/Transforms/Inline/null-function.ll
tools/bugpoint/bugpoint.cpp
tools/opt/opt.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D54794.174911.patch
Type: text/x-patch
Size: 17918 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181121/853dc525/attachment-0001.bin>
More information about the llvm-commits
mailing list