aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Support/FileCheckTest.cpp
diff options
context:
space:
mode:
authorPhilip Reames <listmail@philipreames.com>2019-06-19 22:05:47 +0000
committerPhilip Reames <listmail@philipreames.com>2019-06-19 22:05:47 +0000
commit046f855758cd1362c6fa64eb3b877b609fc01c22 (patch)
treee57212514ab1b67bf445bbe0b0a92d93114e40ab /llvm/unittests/Support/FileCheckTest.cpp
parenteda1ba65ca98e88e9f8673ac0badc748d0824fee (diff)
downloadllvm-046f855758cd1362c6fa64eb3b877b609fc01c22.zip
llvm-046f855758cd1362c6fa64eb3b877b609fc01c22.tar.gz
llvm-046f855758cd1362c6fa64eb3b877b609fc01c22.tar.bz2
[Util] Add a helper script for converting -print-before-all output into a file based equivelent
Simple little utility which takes a opt logfile generated with "opt -print-before-all -print-module-scope -o /dev/null <args> 2&>1", and splits into a series of individual "chunk-X.ll" files. The intended purpose is to help automate one step in failure reduction. The imagined workflow is: New crasher bug reported against clang or other frontend Frontend run with -emit-llvm equivalent and manually confirmed that opt -O2 <emit.ll> crashes Run this splitter script Manually map pass name to invocation command (next on the to automate list) Run bugpoint on last chunk file + manual command I chose to dump every chunk rather than only the last since miscompile debugging frequently requires either manual step by step reduction, or cross feeding IR into different compiler versions. Not an immediate target, but there may be applications. Differential Revision: https://reviews.llvm.org/D63461 llvm-svn: 363884
Diffstat (limited to 'llvm/unittests/Support/FileCheckTest.cpp')
0 files changed, 0 insertions, 0 deletions