[all-commits] [llvm/llvm-project] 9544a3: A new option -print-on-crash that prints the IR as...
jamieschmeiser via All-commits
all-commits at lists.llvm.org
Tue Mar 23 06:30:20 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 9544a32287eccb42a4367cff9b5888855d6b8756
https://github.com/llvm/llvm-project/commit/9544a32287eccb42a4367cff9b5888855d6b8756
Author: Jamie Schmeiser <schmeise at ca.ibm.com>
Date: 2021-03-23 (Tue, 23 Mar 2021)
Changed paths:
M llvm/include/llvm/Passes/StandardInstrumentations.h
M llvm/lib/Passes/PassBuilder.cpp
M llvm/lib/Passes/PassRegistry.def
M llvm/lib/Passes/StandardInstrumentations.cpp
A llvm/test/Other/print-on-crash.ll
Log Message:
-----------
A new option -print-on-crash that prints the IR as it was upon entering the last pass when there is a crash.
Summary:
The IR is saved in its print form before each pass is started and a
signal handler is registered. If the compilation crashes, the signal
handler will print the saved IR to dbgs(). This option
can be modified using -print-module-scope to get the IR for the complete
module. Note that this option only works with the new pass manager.
Author: Jamie Schmeiser <schmeise at ca.ibm.com>
Reviewed By: aeubanks (Arthur Eubanks) yrouban (Yevgeny Rouban)
Differential Revision: https://reviews.llvm.org/D86657
More information about the All-commits
mailing list