Go to file
Hal Finkel 8f96e82cb8 Add an option to save the backend-produced YAML optimization record to a file
The backend now has the capability to save information from optimizations, the
same information that can be used to generate optimization diagnostics but in
machine-consumable form, into an output file. This can be enabled when using
opt (see r282539), and this change enables it when using clang. The idea is
that other tools will be able to consume these files, and perhaps in
combination with the original source code, produce various kinds of
optimization reports for users (and for compiler developers).

We now have at-least two tools that can consume these files:
  * tools/llvm-opt-report
  * utils/opt-viewer

Using the flag -fsave-optimization-record will cause the YAML file to be
generated; the file name will be based on the output file name (if we're using
-c or -S and have an output name), or the input file name. When we're using
CUDA, or some other offloading mechanism, separate files are generated for each
backend target. The output file name can be specified by the user using
-foptimization-record-file=filename.

Differential Revision: https://reviews.llvm.org/D25225

llvm-svn: 283834
2016-10-11 00:26:09 +00:00
clang Add an option to save the backend-produced YAML optimization record to a file 2016-10-11 00:26:09 +00:00
clang-tools-extra Fix clang-tools-extra build after r283815 (Store FileEntry::Filename as a StringRef instead of raw pointer) 2016-10-10 23:24:16 +00:00
compiler-rt [compiler-rt] Exclude compiler-rt from using -fmodules when LLVM_ENABLE_MODULES=On 2016-10-08 09:01:27 +00:00
debuginfo-tests New round of fixes for "Always compile debuginfo-tests for the host triple" 2014-10-18 23:47:59 +00:00
libclc Provide vstore_half helper to workaround clc restrictions 2016-09-21 20:15:55 +00:00
libcxx Mark 2777 as complete 2016-10-10 21:37:16 +00:00
libcxxabi [libc++abi] Fix bug which cased the static libunwind to always be chosen 2016-10-09 20:44:48 +00:00
libunwind libunwind: Add OpenBSD case for _Unwind_Ptr typedef 2016-09-28 15:37:21 +00:00
lld [ThinLTO] Attempt to fix the test (and the bots). 2016-10-10 23:56:13 +00:00
lldb Adding radar number on our end for llvm.org/pr15824. 2016-10-10 23:31:36 +00:00
llgo [llgo] add llgo source path to LLVM_GO_PACKAGES 2016-07-27 03:01:00 +00:00
llvm [AArch64][InstructionSelector] Teach how to select FP load/store. 2016-10-11 00:21:14 +00:00
openmp Code cleanup for the runtime without monitor thread 2016-10-07 18:12:19 +00:00
parallel-libs [SE] Change CoreTests target name 2016-09-27 15:32:52 +00:00
polly [DepInfo] Print -debug output outside of max-operations scope. 2016-10-10 11:45:59 +00:00