[LLVMdev] RFC: Adding an option to llvm-link to allow it to get a list of input bitcode file names from a file

Villmow, Micah Micah.Villmow at amd.com
Thu Sep 13 10:11:31 PDT 2012


What about the case where you have a list of bitcode files and you want to supplement that list with a few more files?

Take for example you have a common subset of bitcode files that you are attempting to link together along with a small number of device specific bitcode files, and you want to do this efficiently for multiple devices.

The common subset could be added to the file and then the device specific bitcodes can be specified on the command line. Otherwise you have to duplicate the bitcode file for each device.

Micah

From: Liu, Yaxun (Sam)
Sent: Thursday, September 13, 2012 10:06 AM
To: Villmow, Micah; llvmdev at cs.uiuc.edu
Subject: RE: [LLVMdev] RFC: Adding an option to llvm-link to allow it to get a list of input bitcode file names from a file

My assumption is that a user will either specify input file names in the command line or passing them by a list file, but usually would not do both. Making these two different ways of specifying input files mutually exclusive may avoid confusion and misuse.

Sam

From: Villmow, Micah
Sent: Thursday, September 13, 2012 12:54 PM
To: Liu, Yaxun (Sam); llvmdev at cs.uiuc.edu
Subject: RE: [LLVMdev] RFC: Adding an option to llvm-link to allow it to get a list of input bitcode file names from a file

Why is there a restriction on the usage between command line and input file? It seems that they both should be able to co-exist and the resulting linking is done as a set of all the bitcode files.

From: llvmdev-bounces at cs.uiuc.edu<mailto:llvmdev-bounces at cs.uiuc.edu> [mailto:llvmdev-bounces at cs.uiuc.edu]<mailto:[mailto:llvmdev-bounces at cs.uiuc.edu]> On Behalf Of Liu, Yaxun (Sam)
Sent: Thursday, September 13, 2012 9:51 AM
To: llvmdev at cs.uiuc.edu<mailto:llvmdev at cs.uiuc.edu>
Subject: [LLVMdev] RFC: Adding an option to llvm-link to allow it to get a list of input bitcode file names from a file

I am proposing to add an option to llvm-link allow it to get a list of input bitcode file names from a file.

The reason is that there is a limitation for command line length which limits the number of input bitcode files that can be passed to llvm-link. By adding this option we can bypass such limitation.

The name of the option can be discussed. My initial proposal would be -input-file-list.

Each line of the list file is a path to an input bitcode file.

If this option is given, no input bitcode file names are allowed in the command line. If input bitcode file names are given in the command line, this option is not allowed.

The implementation is simple. Only llvm-link.cpp is affected.

Thanks.

Sam Liu

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120913/aadcc321/attachment.html>


More information about the llvm-dev mailing list