[all-commits] [llvm/llvm-project] 13d159: Reland A new option -print-on-crash that prints th...
jamieschmeiser via All-commits
all-commits at lists.llvm.org
Thu Oct 7 12:03:02 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 13d1592716a65444314f501109ec9ca344ef1f87
https://github.com/llvm/llvm-project/commit/13d1592716a65444314f501109ec9ca344ef1f87
Author: Jamie Schmeiser <schmeise at ca.ibm.com>
Date: 2021-10-07 (Thu, 07 Oct 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:
-----------
Reland 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. Filtering options can be used to improve performance by limiting
which passes (or functions) save the IR. 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