[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
Thu Oct 6 18:29:21 PDT 2016


hfinkel updated this revision to Diff 73874.
hfinkel added a comment.
Herald added a subscriber: fhahn.

I reworked the way that the automatic file-name selection works so that it will work with offloading (e.g. CUDA), and added more tests for the automatic file-name selection. It now also bases the file name on the output file name if you use -S (not just -c).  When using an offload device, it makes the output file name for the device different from the host in a way that mirrors other parts of the driver.

I also changed the default extension from .yaml to .opt.yaml to make it a little more descriptive (there are obviously lots of different kinds of yaml files).


https://reviews.llvm.org/D25225

Files:
  include/clang/Driver/CC1Options.td
  include/clang/Driver/Options.td
  include/clang/Frontend/CodeGenOptions.h
  lib/CodeGen/CodeGenAction.cpp
  lib/Driver/Tools.cpp
  lib/Frontend/CompilerInvocation.cpp
  test/CodeGen/opt-record.c
  test/Driver/opt-record.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D25225.73874.patch
Type: text/x-patch
Size: 8354 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20161007/6d3e197e/attachment-0001.bin>


More information about the cfe-commits mailing list