[PATCH] D21851: [Driver][OpenMP][CUDA] Add capability to bundle object files in sections of the host binary format.

Samuel Antao via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 29 11:28:56 PDT 2016

sfantao created this revision.
sfantao added reviewers: echristo, tra, jlebar, hfinkel, ABataev.
sfantao added subscribers: caomhin, carlo.bertolli, arpith-jacob, Hahnfeld, andreybokhanko, cfe-commits.
Herald added a subscriber: mehdi_amini.

This patch adds the capability to bundle object files in sections of the host binary using a designated naming convention for these sections. This patch uses the functionality of the object reader already in the LLVM library to read bundled files, and invokes clang with the incremental linking options to create bundle files. 

Bundling files involves creating an IR file with the contents of the bundle assigned as initializers of globals binded to the designated sections. This way the bundling implementation is agnostic of the host object format.

The features added by this patch were requested in the RFC discussion in  http://lists.llvm.org/pipermail/cfe-dev/2016-February/047547.html.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: D21851.62255.patch
Type: text/x-patch
Size: 13817 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160629/9a7604a4/attachment-0001.bin>

More information about the cfe-commits mailing list