1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00
llvm-mirror/test/Other
Jamie Schmeiser 8d6d1d8a73 Re-land: Add new hidden option -print-changed which only reports changes to IR
A new hidden option -print-changed is added along with code to support
printing the IR as it passes through the opt pipeline in the new pass
manager. Only those passes that change the IR are reported, with others
only having the banner reported, indicating that they did not change the
IR, were filtered out or ignored. Filtering of output via the
-filter-print-funcs is supported and a new supporting hidden option
-filter-passes is added. The latter takes a comma separated list of pass
names and filters the output to only show those passes in the list that
change the IR. The output can also be modified via the -print-module-scope
function.

The code introduces a template base class that generalizes the comparison
of IRs that takes an IR representation as template parameter. The
constructor takes a series of lambdas that provide an event based API
for generalized reporting of IRs as they are changed in the opt pipeline
through the new pass manager.

The first of several instantiations is provided that prints the IR
in a form similar to that produced by -print-after-all with the above
mentioned filtering capabilities. This version, and the others to
follow will be introduced at the upcoming developer's conference.

Reviewed By: aeubanks (Arthur Eubanks), yrouban (Yevgeny Rouban), ychen (Yuanfang Chen)

Differential Revision: https://reviews.llvm.org/D86360
2020-09-16 17:25:18 +00:00
..
Inputs
X86
2002-01-31-CallGraph.ll
2002-02-24-InlineBrokePHINodes.ll
2004-08-16-PackedConstantInlineStore.ll
2004-08-16-PackedGlobalConstant.ll
2004-08-16-PackedSelect.ll
2004-08-16-PackedSimple.ll
2004-08-20-PackedControlFlow.ll
2006-02-05-PassManager.ll
2007-06-05-PassID.ll
2007-06-28-PassManager.ll
2007-09-10-PassManager.ll [NewPM][LoopUnswitch] Pin loop-unswitch to legacy PM or use simple-loop-unswitch 2020-08-06 10:56:00 -07:00
2008-02-14-PassManager.ll
2008-06-04-FieldSizeInPacked.ll
2008-10-06-RemoveDeadPass.ll
2008-10-15-MissingSpace.ll
2009-03-31-CallGraph.ll
2009-06-05-no-implicit-float.ll
2009-09-14-function-elements.ll
2010-05-06-Printer.ll
attribute-comment.ll
available-externally-lto.ll
bcanalyzer-block-info.txt
bcanalyzer-dump-option.txt
can-execute.txt
cfg_deopt_unreach.ll
cfg-printer-branch-weights-percent.ll
cfg-printer-branch-weights.ll
cgscc-devirt-iteration.ll
cgscc-disconnected-invalidation.ll
cgscc-iterate-function-mutation.ll
cgscc-libcall-update.ll
cgscc-observe-devirt.ll
change-printer.ll Re-land: Add new hidden option -print-changed which only reports changes to IR 2020-09-16 17:25:18 +00:00
cleanup-lcssa.ll
codegenprepare-and-debug.ll
constant-fold-gep-address-spaces.ll
constant-fold-gep.ll [NewPM][SCEV] Fix constant-fold-gep.ll under NPM 2020-09-15 20:25:35 -07:00
cspgo-O2-pipeline.ll [NewPM] Pin various tests under Other/ to legacy PM 2020-08-17 18:58:08 -07:00
debugcounter-dce.ll
debugcounter-earlycse.ll [EarlyCSE] Verify hash code in regression tests 2020-09-04 10:40:35 -04:00
debugcounter-newgvn.ll
debugcounter-predicateinfo.ll
extract-alias.ll
extract-linkonce.ll
extract-weak-odr.ll
extract.ll
FileCheck-space.txt
heat-colors-graphs.ll [CallPrinter] Adding heat coloring to CallPrinter 2020-06-16 21:15:29 +00:00
heat-colors-multigraph.ll [CallPrinter] Adding heat coloring to CallPrinter 2020-06-16 21:15:29 +00:00
invalid-commandline-option.ll
invariant.group.ll [EarlyCSE] Verify hash code in regression tests 2020-09-04 10:40:35 -04:00
lint.ll [NewPM][Lint] Port -lint to NewPM 2020-09-03 13:03:44 -07:00
lit-globbing.ll
lit-quoting.txt
lit-unicode.txt
llvm-nm-without-aliases.ll
loop-deletion-printer.ll
loop-pass-ordering.ll
loop-pass-printer.ll [NewPM] Pin various tests under Other/ to legacy PM 2020-08-17 18:58:08 -07:00
loop-pm-invalidation.ll [NewPM] Don't print 'Invalidating all non-preserved analyses' 2020-07-30 19:40:29 -07:00
machine-size-remarks.ll
module-pass-printer.ll
new-pass-manager.ll [NewPM] Don't print 'Invalidating all non-preserved analyses' 2020-07-30 19:40:29 -07:00
new-pm-cspgo.ll
new-pm-defaults.ll Revert "[DSE] Switch to MemorySSA-backed DSE by default." 2020-09-15 18:07:56 +01:00
new-pm-lto-defaults.ll Revert "[DSE] Switch to MemorySSA-backed DSE by default." 2020-09-15 18:07:56 +01:00
new-pm-pgo-O0.ll
new-pm-pgo.ll [NewPM][PassInstrument] Add PrintPass callback to StandardInstrumentations 2020-07-30 10:07:57 -07:00
new-pm-pr42726-cgscc.ll
new-pm-thinlto-defaults.ll Revert "[DSE] Switch to MemorySSA-backed DSE by default." 2020-09-15 18:07:56 +01:00
new-pm-thinlto-postlink-pgo-defaults.ll [NewPM][LVI] Abandon LVI after CVP 2020-08-01 23:47:46 +02:00
new-pm-thinlto-postlink-samplepgo-defaults.ll [NewPM][LVI] Abandon LVI after CVP 2020-08-01 23:47:46 +02:00
new-pm-thinlto-prelink-pgo-defaults.ll [NewPM][LVI] Abandon LVI after CVP 2020-08-01 23:47:46 +02:00
new-pm-thinlto-prelink-samplepgo-defaults.ll [NewPM][LVI] Abandon LVI after CVP 2020-08-01 23:47:46 +02:00
new-pm-time-trace.ll
opt-bisect-helper.py
opt-bisect-legacy-pass-manager.ll [EarlyCSE] Verify hash code in regression tests 2020-09-04 10:40:35 -04:00
opt-hot-cold-split.ll [NewPM] Fix opt-hot-cold-split.ll under NPM 2020-09-15 20:29:20 -07:00
opt-npm.ll [NewPM] Attempt to run opt passes specified via -foo-pass under NPM 2020-06-23 10:10:40 -07:00
opt-O0-pipeline-enable-matrix.ll [NewPM] Pin various tests under Other/ to legacy PM 2020-08-17 18:58:08 -07:00
opt-O0-pipeline.ll [NewPM] Pin various tests under Other/ to legacy PM 2020-08-17 18:58:08 -07:00
opt-O2-pipeline.ll [BFI] Make BFI information available through loop passes inside LoopStandardAnalysisResults 2020-09-15 16:16:24 -07:00
opt-O3-pipeline-enable-matrix.ll [BFI] Make BFI information available through loop passes inside LoopStandardAnalysisResults 2020-09-15 16:16:24 -07:00
opt-O3-pipeline.ll [BFI] Make BFI information available through loop passes inside LoopStandardAnalysisResults 2020-09-15 16:16:24 -07:00
opt-old-new-pm-passes.ll [NPM] Bail out when -foo and --passes=foo are both specified 2020-06-22 08:27:13 -07:00
opt-Os-pipeline.ll [BFI] Make BFI information available through loop passes inside LoopStandardAnalysisResults 2020-09-15 16:16:24 -07:00
opt-override-denormal-fp-math-f32.ll
opt-override-denormal-fp-math-mixed.ll
opt-override-denormal-fp-math.ll
opt-override-frame-pointer.ll
opt-override-mcpu-mattr.ll
opt-pipeline-vector-passes.ll [NewPM] Pin various tests under Other/ to legacy PM 2020-08-17 18:58:08 -07:00
opt-twice.ll
optimization-remarks-inline.ll
optimization-remarks-invalidation.ll
optimization-remarks-lazy-bfi.ll
optimize-inrange-gep.ll
optimize-options.ll [NewPM] Pin various tests under Other/ to legacy PM 2020-08-17 18:58:08 -07:00
pass-pipeline-parsing.ll [NewPM][PassInstrument] Add PrintPass callback to StandardInstrumentations 2020-07-30 10:07:57 -07:00
pass-pipelines.ll [NewPM] Pin various tests under Other/ to legacy PM 2020-08-17 18:58:08 -07:00
pipefail.txt
pr32085.ll
print-cfg-sccs.ll [NewPM] Pin various tests under Other/ to legacy PM 2020-08-17 18:58:08 -07:00
print-debug-counter.ll [EarlyCSE] Verify hash code in regression tests 2020-09-04 10:40:35 -04:00
print-module-scope.ll [NewPM] Pin various tests under Other/ to legacy PM 2020-08-17 18:58:08 -07:00
print-slotindexes.ll
printer.ll [NewPM] Pin various tests under Other/ to legacy PM 2020-08-17 18:58:08 -07:00
ResponseFile.ll
scalable-vector-array.ll
scalable-vector-struct.ll
scalable-vectors-core-ir.ll
scc-deleted-printer.ll
scc-pass-printer.ll
size-remarks.ll
spir_cc.ll
statistic.ll
time-passes.ll [NewPM] Pin various tests under Other/ to legacy PM 2020-08-17 18:58:08 -07:00
unroll-sroa.ll
writing-to-stdout.ll