Adrian Prantl
fb3abba237
[PR27284] Reverse the ownership between DICompileUnit and DISubprogram.
...
Currently each Function points to a DISubprogram and DISubprogram has a
scope field. For member functions the scope is a DICompositeType. DIScopes
point to the DICompileUnit to facilitate type uniquing.
Distinct DISubprograms (with isDefinition: true) are not part of the type
hierarchy and cannot be uniqued. This change removes the subprograms
list from DICompileUnit and instead adds a pointer to the owning compile
unit to distinct DISubprograms. This would make it easy for ThinLTO to
strip unneeded DISubprograms and their transitively referenced debug info.
Motivation
----------
Materializing DISubprograms is currently the most expensive operation when
doing a ThinLTO build of clang.
We want the DISubprogram to be stored in a separate Bitcode block (or the
same block as the function body) so we can avoid having to expensively
deserialize all DISubprograms together with the global metadata. If a
function has been inlined into another subprogram we need to store a
reference the block containing the inlined subprogram.
Attached to https://llvm.org/bugs/show_bug.cgi?id=27284 is a python script
that updates LLVM IR testcases to the new format.
http://reviews.llvm.org/D19034
<rdar://problem/25256815>
llvm-svn: 266446
2016-04-15 15:57:41 +00:00
..
2016-04-15 15:57:41 +00:00
2015-03-13 18:20:45 +00:00
2015-11-22 00:16:24 +00:00
2015-12-07 16:31:41 +00:00
2015-12-07 16:31:41 +00:00
2015-03-13 18:20:45 +00:00
2015-02-27 21:17:42 +00:00
2015-09-11 03:22:04 +00:00
2015-09-11 03:22:04 +00:00
2015-09-11 03:22:04 +00:00
2016-04-15 15:57:41 +00:00
2016-04-15 15:57:41 +00:00
2016-04-15 15:57:41 +00:00
2016-04-15 15:57:41 +00:00
2016-04-15 15:57:41 +00:00
2016-04-15 15:57:41 +00:00
2016-04-15 15:57:41 +00:00
2016-04-15 15:57:41 +00:00
2016-04-15 15:57:41 +00:00
2016-04-15 15:57:41 +00:00
2016-01-20 22:05:50 +00:00
2015-12-10 14:19:35 +00:00
2014-12-05 00:02:42 +00:00
2015-03-13 18:20:45 +00:00
2015-02-13 00:40:41 +00:00
2015-12-10 18:44:26 +00:00
2015-03-31 03:07:23 +00:00
2015-01-06 22:55:16 +00:00
2015-01-06 22:55:16 +00:00
2015-01-06 22:55:16 +00:00
2015-09-11 03:22:04 +00:00
2015-01-06 22:55:16 +00:00
2015-09-11 03:22:04 +00:00
2016-03-24 00:06:03 +00:00
2015-06-22 21:46:51 +00:00
2015-12-01 15:19:48 +00:00
2015-12-01 15:19:48 +00:00
2015-12-01 15:19:48 +00:00
2015-12-02 20:03:17 +00:00
2015-12-02 20:57:33 +00:00
2016-03-23 21:16:33 +00:00
2015-11-27 23:21:45 +00:00
2016-03-22 21:35:47 +00:00
2015-01-06 22:55:16 +00:00
2015-12-07 16:31:41 +00:00
2016-03-23 21:16:33 +00:00
2015-11-29 03:29:42 +00:00
2015-11-30 18:54:24 +00:00
2015-12-02 15:02:43 +00:00
2015-12-07 13:24:23 +00:00
2015-11-30 20:36:23 +00:00
2015-03-04 18:43:29 +00:00
2016-04-15 15:57:41 +00:00
2016-04-15 15:57:41 +00:00
2016-04-15 15:57:41 +00:00
2015-08-03 17:26:41 +00:00
2015-02-04 19:44:34 +00:00
2015-11-06 17:50:53 +00:00
2014-02-13 05:11:35 +00:00
2014-02-13 05:11:35 +00:00
2015-12-14 23:17:03 +00:00
2014-01-24 19:20:15 +00:00
2014-01-24 19:20:15 +00:00
2016-04-12 21:35:18 +00:00
2016-04-12 21:35:18 +00:00
2016-04-12 21:35:18 +00:00
2016-04-12 21:35:18 +00:00
2015-12-01 15:46:46 +00:00
2014-11-05 21:33:34 +00:00
2015-12-08 02:38:14 +00:00
2015-12-08 02:29:45 +00:00
2015-02-27 21:17:42 +00:00
2014-09-09 17:48:18 +00:00
2014-12-15 19:07:53 +00:00
2014-12-15 19:07:53 +00:00
2014-12-15 19:07:53 +00:00
2014-12-15 19:07:53 +00:00
2014-12-08 18:45:16 +00:00
2016-04-15 15:57:41 +00:00
2014-12-15 19:07:53 +00:00
2014-12-15 19:07:53 +00:00
2015-04-24 22:07:31 +00:00
2014-12-15 19:07:53 +00:00
2014-12-15 19:07:53 +00:00
2014-12-15 19:07:53 +00:00
2014-12-15 19:07:53 +00:00
2014-12-15 19:07:53 +00:00
2015-03-25 23:22:10 +00:00
2014-12-15 19:07:53 +00:00
2015-03-25 23:22:10 +00:00
2014-12-15 19:07:53 +00:00
2014-12-15 19:07:53 +00:00
2014-12-15 19:07:53 +00:00
2014-12-15 19:07:53 +00:00
2014-12-15 19:07:53 +00:00
2014-12-15 19:07:53 +00:00
2014-12-15 19:07:53 +00:00
2014-12-15 19:07:53 +00:00
2015-01-07 21:32:27 +00:00
2014-12-15 19:07:53 +00:00
2014-12-15 19:07:53 +00:00
2016-04-15 15:57:41 +00:00
2016-01-21 14:28:52 +00:00
2015-12-07 16:31:41 +00:00
2015-04-22 04:11:00 +00:00
2015-05-12 16:47:30 +00:00
2015-11-22 00:16:24 +00:00
2015-04-22 04:11:00 +00:00
2015-02-27 19:29:02 +00:00
2015-03-13 18:20:45 +00:00
2014-12-03 07:18:23 +00:00
2015-09-11 03:22:04 +00:00
2015-03-06 00:50:21 +00:00
2016-04-15 15:57:41 +00:00
2016-03-24 15:23:01 +00:00
2015-11-29 14:53:06 +00:00
2014-10-31 16:52:30 +00:00
2016-04-15 15:57:41 +00:00
2016-04-15 15:57:41 +00:00
2015-03-02 21:33:18 +00:00
2015-12-07 16:31:41 +00:00
2016-04-15 15:57:41 +00:00
2015-09-11 03:22:04 +00:00
2015-12-07 16:31:41 +00:00
2013-09-09 23:07:58 +00:00
2014-11-25 15:33:40 +00:00
2016-04-15 15:57:41 +00:00
2016-04-15 15:57:41 +00:00
2014-11-28 16:41:24 +00:00
2016-04-15 15:57:41 +00:00
2016-04-15 15:57:41 +00:00
2015-09-16 05:34:32 +00:00
2016-04-15 15:57:41 +00:00
2016-04-15 15:57:41 +00:00
2015-12-07 16:31:41 +00:00
2016-04-15 15:57:41 +00:00
2016-04-15 15:57:41 +00:00
2014-11-25 03:47:57 +00:00
2014-12-15 19:07:53 +00:00
2014-12-15 19:07:53 +00:00
2015-08-04 06:42:31 +00:00
2015-12-07 16:31:41 +00:00
2015-09-11 03:22:04 +00:00
2013-09-04 15:33:34 +00:00
2013-09-04 15:33:34 +00:00
2015-09-11 03:22:04 +00:00
2015-12-07 16:31:41 +00:00