[PATCH] D25225: Add an option to save the backend-produced YAML optimization record to a file
Hal Finkel via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 31 14:34:27 PDT 2016
hfinkel added a comment.
In https://reviews.llvm.org/D25225#584010, @twoh wrote:
> Is there a particular reason why "opt_record_file" is defined in CC1Options.td, not Options.td? If -opt-record-file=<filename> is provided by the command line, line 829-831 in CompilerInvocation.cpp won't handle it because opt_record_file is not a CodeGenArg.
It is not intended to be used directly. The user should use -fsave-optimization-record (along with -foptimization-record-file= if they don't like the default name selected). We definitely need to write end-user docs for this; it is on my TODO list.
More information about the cfe-commits