Oliver Stannard
9ed9eb72f4
Refactor backend diagnostics for unsupported features
...
Re-commit of r258951 after fixing layering violation.
The BPF and WebAssembly backends had identical code for emitting errors
for unsupported features, and AMDGPU had very similar code. This merges
them all into one DiagnosticInfo subclass, that can be used by any
backend.
There should be minimal functional changes here, but some AMDGPU tests
have been updated for the new format of errors (it used a slightly
different format to BPF and WebAssembly). The AMDGPU error messages will
now benefit from having precise source locations when debug info is
available.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@259498 91177308-0d34-0410-b5e6-96231b3b80d8
2016-02-02 13:52:43 +00:00
..
2015-08-29 07:16:50 +00:00
2015-09-25 20:22:12 +00:00
2016-02-02 13:52:43 +00:00
2016-01-18 22:01:13 +00:00
2016-01-30 05:10:59 +00:00
2016-01-30 05:10:59 +00:00
2015-12-19 01:46:41 +00:00
2015-07-14 18:20:33 +00:00
2016-01-23 05:42:49 +00:00
2015-12-14 17:25:38 +00:00
2016-02-02 13:52:43 +00:00
2015-10-06 21:16:34 +00:00
2015-12-01 23:04:00 +00:00
2015-09-09 15:43:26 +00:00
2015-12-22 20:55:23 +00:00
2016-01-26 04:38:08 +00:00
2016-01-11 17:02:06 +00:00
2016-01-11 17:02:06 +00:00
2015-12-19 01:16:06 +00:00
2016-01-26 04:29:56 +00:00
2015-11-24 12:05:03 +00:00
2015-12-19 01:46:41 +00:00
2015-07-14 17:57:36 +00:00
2015-12-19 01:46:41 +00:00
2015-12-19 01:46:41 +00:00
2015-12-19 01:46:41 +00:00
2015-12-19 01:46:41 +00:00
2015-12-19 01:46:41 +00:00
2015-12-19 01:46:41 +00:00
2015-12-19 01:46:41 +00:00
2016-02-02 13:52:43 +00:00
2016-01-26 00:03:25 +00:00
2016-01-26 04:43:48 +00:00
2015-11-25 19:58:34 +00:00
2015-11-25 19:58:34 +00:00
2015-10-12 23:59:50 +00:00
2015-08-31 21:10:35 +00:00
2015-12-19 01:46:41 +00:00
2016-01-07 17:10:20 +00:00
2015-09-21 20:32:48 +00:00
2015-12-11 23:16:47 +00:00
2016-01-28 20:53:48 +00:00
2016-01-07 17:10:29 +00:00
2015-07-17 01:14:35 +00:00
2015-07-13 15:47:57 +00:00
2015-10-29 15:29:05 +00:00
2016-01-22 18:42:38 +00:00
2016-01-22 18:42:38 +00:00
2016-01-07 17:10:29 +00:00
2015-11-12 21:43:25 +00:00
2015-10-12 23:59:50 +00:00
2015-09-24 07:51:17 +00:00
2015-12-15 22:39:36 +00:00
2015-11-25 19:58:34 +00:00
2016-02-02 13:52:43 +00:00
2015-07-27 18:16:08 +00:00
2016-01-18 21:43:36 +00:00
2016-01-27 02:17:49 +00:00
2016-01-28 20:53:35 +00:00
2016-01-08 14:50:28 +00:00
2015-12-02 17:00:42 +00:00
2016-01-13 20:39:25 +00:00
2016-01-08 14:50:23 +00:00
2015-12-04 01:51:19 +00:00
2015-08-07 23:19:30 +00:00
2015-11-02 23:15:42 +00:00
2015-10-07 00:42:51 +00:00
2015-12-19 01:46:41 +00:00
2016-01-06 22:01:04 +00:00
2015-12-10 02:12:53 +00:00
2015-11-25 19:58:34 +00:00
2015-07-10 22:17:40 +00:00
2016-01-23 05:42:49 +00:00
2015-11-30 21:15:53 +00:00
2016-01-05 20:42:49 +00:00
2016-01-05 20:42:49 +00:00
2016-02-02 13:52:43 +00:00
2016-02-02 13:52:43 +00:00
2015-12-04 01:51:19 +00:00
2015-09-24 19:52:21 +00:00
2015-09-24 19:52:21 +00:00
2015-09-24 19:52:21 +00:00
2016-01-22 21:30:34 +00:00
2016-01-26 04:29:56 +00:00
2016-01-26 04:29:56 +00:00
2016-01-26 04:29:56 +00:00
2016-01-26 04:29:56 +00:00
2016-02-02 13:52:43 +00:00
2016-01-22 21:30:34 +00:00
2016-01-22 21:30:34 +00:00
2016-01-22 21:30:34 +00:00
2015-12-15 17:02:49 +00:00
2016-01-22 21:30:34 +00:00
2015-12-15 17:02:52 +00:00
2016-01-22 21:30:34 +00:00
2016-01-22 21:30:34 +00:00
2016-01-22 21:30:34 +00:00
2016-01-22 21:30:34 +00:00
2016-01-22 21:30:43 +00:00
2015-09-24 19:52:27 +00:00
2015-09-24 19:52:27 +00:00
2015-09-24 19:52:27 +00:00
2015-09-24 19:52:27 +00:00
2016-01-22 21:30:34 +00:00
2016-01-30 04:25:19 +00:00
2016-01-30 04:25:19 +00:00
2015-08-29 07:16:50 +00:00
2016-01-26 04:29:56 +00:00
2016-01-26 04:14:16 +00:00
2016-01-22 21:30:34 +00:00
2016-01-26 04:14:16 +00:00
2015-12-22 20:55:23 +00:00
2015-11-24 12:18:54 +00:00
2015-12-04 01:51:19 +00:00
2016-01-22 21:30:34 +00:00
2016-01-20 21:05:40 +00:00
2016-01-07 17:10:29 +00:00
2015-07-14 14:15:03 +00:00
2016-01-27 11:19:45 +00:00
2016-01-26 04:43:48 +00:00
2016-01-26 04:43:48 +00:00
2016-01-26 04:38:08 +00:00
2015-10-29 15:29:09 +00:00
2016-01-23 05:42:49 +00:00
2016-01-05 03:40:16 +00:00
2015-11-30 21:16:03 +00:00
2015-11-30 21:16:03 +00:00
2016-01-29 10:05:16 +00:00
2015-07-13 15:47:57 +00:00
2015-07-13 15:47:57 +00:00
2015-07-13 15:47:57 +00:00
2015-07-13 15:47:57 +00:00
2015-12-19 01:39:48 +00:00
2015-12-19 01:46:41 +00:00
2015-12-19 01:39:48 +00:00
2015-12-22 20:55:23 +00:00
2015-11-05 02:46:56 +00:00
2015-07-14 18:20:33 +00:00
2016-02-02 13:52:43 +00:00
2015-11-06 21:58:37 +00:00
2015-10-01 21:16:05 +00:00
2015-08-29 07:16:50 +00:00
2015-12-04 01:51:19 +00:00
2015-09-22 22:37:44 +00:00
2016-01-30 05:19:45 +00:00
2016-01-30 05:19:45 +00:00
2016-02-02 13:52:43 +00:00
2016-01-22 19:47:54 +00:00
2015-07-28 18:47:00 +00:00
2016-01-22 21:30:34 +00:00
2016-01-22 21:30:34 +00:00
2016-01-26 04:29:24 +00:00
2016-01-26 04:29:24 +00:00
2016-01-26 04:29:24 +00:00
2016-01-26 04:29:24 +00:00
2015-12-22 20:55:23 +00:00
2015-11-25 19:58:34 +00:00
2016-01-13 17:23:20 +00:00
2015-09-24 07:16:37 +00:00
2016-01-05 03:40:16 +00:00
2015-08-07 23:19:30 +00:00
2016-01-23 05:42:49 +00:00
2016-01-23 05:42:49 +00:00
2016-01-23 05:42:49 +00:00
2015-12-19 01:46:41 +00:00
2015-08-29 07:16:50 +00:00
2015-09-09 15:43:26 +00:00
2015-07-14 14:15:03 +00:00
2015-12-04 01:51:19 +00:00
2016-01-20 00:13:22 +00:00
2016-01-20 21:48:24 +00:00
2016-01-20 20:50:19 +00:00
2016-01-26 04:38:08 +00:00
2016-01-18 22:09:04 +00:00
2015-08-29 07:16:50 +00:00
2015-08-29 07:16:50 +00:00
2016-01-18 22:01:13 +00:00
2015-11-30 15:46:47 +00:00
2015-08-27 17:41:27 +00:00
2016-01-26 04:38:08 +00:00
2016-01-26 04:38:08 +00:00
2016-01-26 04:38:08 +00:00
2016-01-23 05:42:38 +00:00
2015-12-19 01:46:41 +00:00
2015-08-22 00:50:41 +00:00
2016-01-18 22:09:04 +00:00
2016-01-11 17:02:10 +00:00
2016-01-28 20:53:42 +00:00
2015-12-11 23:16:47 +00:00
2015-08-06 19:28:38 +00:00
2016-01-05 20:42:49 +00:00
2015-11-02 23:30:48 +00:00
2015-12-14 16:59:40 +00:00
2016-01-18 22:09:04 +00:00
2015-12-04 01:51:19 +00:00
2015-10-01 17:51:34 +00:00
2015-12-19 01:46:41 +00:00
2015-11-24 12:18:54 +00:00
2015-08-29 07:16:50 +00:00
2016-01-26 04:38:08 +00:00
2015-07-01 22:34:59 +00:00
2016-01-22 19:00:09 +00:00
2016-01-22 19:00:09 +00:00
2016-01-20 00:13:22 +00:00
2015-07-31 04:12:04 +00:00
2015-10-29 15:05:03 +00:00
2016-01-11 21:18:40 +00:00
2015-10-20 03:59:58 +00:00
2015-08-22 00:50:41 +00:00
2016-01-11 22:01:48 +00:00
2016-01-11 22:01:48 +00:00
2016-01-28 20:53:42 +00:00
2015-12-04 01:51:19 +00:00
2016-01-29 10:05:16 +00:00
2015-07-13 15:47:57 +00:00
2015-11-06 17:54:43 +00:00
2015-11-30 21:16:03 +00:00
2015-11-30 21:16:03 +00:00
2015-08-29 07:16:50 +00:00
2015-07-14 14:15:03 +00:00
2015-12-19 01:46:41 +00:00
2016-01-30 04:25:19 +00:00
2016-01-26 04:29:24 +00:00
2016-01-26 04:29:24 +00:00
2015-12-04 01:51:19 +00:00
2015-11-02 23:15:42 +00:00