[LTO] Add options to llvm-lto to select output format and dump merged module

Description

[LTO] Add options to llvm-lto to select output format and dump merged module

This introduces two new options:

  • "llvm-lto -save-merged-module -o outfile" dumps the LTO Module to outfile.merged.bc prior to CodeGen and after LTO optimizations have been run.
  • "llvm-lto -filetype=asm -o outfile" makes llvm-lto emit assembly instead of object code in outfile.

Both are intended for use in lit tests.

Details

Committed
tobiasvkNov 19 2015, 4:13 PM
Parents
rL253623: Make skipIf support the not_in function.
Branches
Unknown
Tags
Unknown