Commit d893994
authored
[SYCL][Driver][thinLTO] Don't pass -emit-only-kernels-as-entry-points to sycl-post-link in early splitting (#14991)
In early splitting with thinLTO, we could be generating an `.o` to be
linked in with other files later. Right now, passing
`-emit-only-kernels-as-entry-points` to `sycl-post-link` can cause
functions to get dropped even though they are used by some other `.o`.
We will need to prune non-entry points inside the thinLTO processing
inside `clang-linker-wrapper`, but that's not implemented yet.
---------
Signed-off-by: Sarnie, Nick <nick.sarnie@intel.com>1 parent 121a7d5 commit d893994
File tree
2 files changed
+30
-13
lines changed- clang
- lib/Driver/ToolChains
- test/Driver
2 files changed
+30
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10741 | 10741 | | |
10742 | 10742 | | |
10743 | 10743 | | |
| 10744 | + | |
| 10745 | + | |
| 10746 | + | |
| 10747 | + | |
| 10748 | + | |
| 10749 | + | |
| 10750 | + | |
| 10751 | + | |
| 10752 | + | |
| 10753 | + | |
| 10754 | + | |
| 10755 | + | |
| 10756 | + | |
| 10757 | + | |
| 10758 | + | |
| 10759 | + | |
| 10760 | + | |
| 10761 | + | |
| 10762 | + | |
| 10763 | + | |
| 10764 | + | |
| 10765 | + | |
| 10766 | + | |
| 10767 | + | |
| 10768 | + | |
| 10769 | + | |
10744 | 10770 | | |
10745 | 10771 | | |
10746 | 10772 | | |
| |||
10778 | 10804 | | |
10779 | 10805 | | |
10780 | 10806 | | |
10781 | | - | |
10782 | | - | |
10783 | | - | |
10784 | | - | |
10785 | | - | |
10786 | | - | |
10787 | | - | |
10788 | | - | |
10789 | | - | |
10790 | | - | |
10791 | | - | |
| 10807 | + | |
10792 | 10808 | | |
10793 | 10809 | | |
10794 | 10810 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
| 13 | + | |
13 | 14 | | |
14 | | - | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
0 commit comments