[PATCH] D14554: [LTO] Add option to emit assembly and bitcode from LTO CodeGen

Tobias Edler von Koch via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 10 14:38:58 PST 2015


tobiasvk created this revision.
tobiasvk added reviewers: rafael, dexonsmith.
tobiasvk added subscribers: llvm-commits, tejohnson, joker.eph.

LTOCodeGenerator and the llvm-lto utility can currently only emit object code.
With this patch, we gain the ability to output assembly and bitcode if desired.
This is primarily useful for testing (e.g. lit tests of LTO CodeGen). Our
linker also has a -save-temps option to save assembly during LTO which can be
implemented on top of this functionality.

http://reviews.llvm.org/D14554

Files:
  include/llvm/CodeGen/ParallelCG.h
  include/llvm/LTO/LTOCodeGenerator.h
  lib/CodeGen/ParallelCG.cpp
  lib/LTO/LTOCodeGenerator.cpp
  test/LTO/X86/llvm-lto-output.ll
  tools/llvm-lto/llvm-lto.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D14554.39852.patch
Type: text/x-patch
Size: 12182 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151110/359c4170/attachment.bin>


More information about the llvm-commits mailing list