llvm-project/clang/lib
Alexey Bataev 9780faaf8f [OpenMP][Driver] Put target binary for each offload target into a
separate section, by Sergey Dmitriev

Linker script that is generated by the clang driver for creating fat binary puts target binaries for all offload targets into a single ELF section .omp_offloading. This is not convenient because it greatly complicates operations with the final fat binary once it is linked. For example extracting target binary for a particular target from such fat executable would not be an easy task if you have more than one offload target.

Attached patch changes clang driver to put target binary for each
offload target into a separate ELF section .omp_offloading.<target
triple>.

Differential Revision: https://reviews.llvm.org/D33254

llvm-svn: 304229
2017-05-30 18:57:51 +00:00
..
ARCMigrate [ARCMigrate] When applying changes from remap files, disable the 'adjustRemovals' functionality of EditedSource 2017-04-28 00:25:06 +00:00
AST Make helper functions static. NFC. 2017-05-26 20:08:24 +00:00
ASTMatchers Add cxxStdInitializerListExpr AST matcher 2017-05-05 21:01:12 +00:00
Analysis [coroutines] Fix fallthrough diagnostics for coroutines 2017-05-25 02:16:53 +00:00
Basic Reverting Neon vector type 64-alignment fix 2017-05-30 17:09:47 +00:00
CodeGen CGCoroutine.cpp: (NFC) clang-format misplaced brace 2017-05-29 21:15:31 +00:00
Driver [OpenMP][Driver] Put target binary for each offload target into a 2017-05-30 18:57:51 +00:00
Edit [ARCMigrate] When applying changes from remap files, disable the 'adjustRemovals' functionality of EditedSource 2017-04-28 00:25:06 +00:00
Format clang-format: [JS] do not clean up duplicated commas. 2017-05-29 08:41:11 +00:00
Frontend [libclang] Allow to suspend a translation unit. 2017-05-30 14:25:54 +00:00
FrontendTool unique_ptrify createDriverOptTable 2017-01-13 17:34:15 +00:00
Headers [PPC] Make altivec conversion function macros. 2017-05-30 11:37:29 +00:00
Index [index] The references to explicit class properties should be recorded 2017-05-24 14:23:40 +00:00
Lex Allow for unfinished #if blocks in preambles 2017-05-30 11:54:55 +00:00
Parse [NFC, Refactor] Modernize TemplateIdAnnotation using TrailingObjects 2017-05-23 01:07:12 +00:00
Rewrite [analyzer] Re-apply r283092, attempt no.4, chunk no.4 (last) 2016-10-07 19:25:10 +00:00
Sema [OPENMP] Allow 'use_device_ptr' clause in 'target data' alone. 2017-05-30 16:00:04 +00:00
Serialization Allow for unfinished #if blocks in preambles 2017-05-30 11:54:55 +00:00
StaticAnalyzer [analyzer] Fix immutable map factory lifetime for partial taint. 2017-05-29 18:54:02 +00:00
Tooling Method loadFromCommandLine should be able to report errors 2017-05-24 11:57:37 +00:00
CMakeLists.txt