Victor Campos
14293748bd
[TableGen] Fix register class handling in TableGen's DAG ISel Matcher Generator
...
Summary:
In TableGen's instruction selection table generator, references to
register classes were handled by generating a matcher table entry in the
form of "EmitStringInteger, MVT::i32, 'RegisterClassID'". This ID is in
fact the enum integer value corresponding to the register class.
However, both the table generator and the table consumer
(SelectionDAGISel) assume that this ID is less than or equal to 127,
i.e. at most 7 bits. Values greater than this threshold cause completely
wrong behaviours in the instruction selection process.
This patch adds a check to determine if the enum integer value is
greater than the limit of 127. In finding so, the generator emits an
"EmitInteger" instead, which properly supports values with arbitrary
sizes.
Commit f8d044bbcfdc9e1ddc02247ffb86fe39e1f277f0 fixed the very same bug
for register subindices. The present patch now extends this cover to
register classes.
Reviewers: rampitec
Reviewed By: rampitec
Subscribers: llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D79705
2020-05-13 10:17:03 +01:00
..
2020-02-18 10:09:05 -08:00
2019-08-10 16:15:06 +00:00
2020-01-07 12:50:05 -08:00
2020-03-31 08:36:18 +00:00
2017-12-07 09:51:55 +00:00
2018-11-29 18:20:08 +00:00
2018-03-06 13:49:01 +00:00
2018-03-14 11:00:43 +00:00
2020-03-13 17:13:51 +00:00
2020-03-13 17:13:51 +00:00
2020-03-13 17:13:51 +00:00
2019-09-18 18:14:42 +00:00
2018-03-06 13:48:47 +00:00
2020-02-07 15:11:42 +00:00
2018-03-06 13:48:47 +00:00
2018-10-10 10:52:57 +00:00
2018-03-19 14:14:20 +00:00
2018-03-06 13:48:39 +00:00
2018-03-14 11:00:57 +00:00
2020-04-23 14:26:32 +09:00
2019-01-25 10:25:25 +00:00
2019-01-25 10:25:25 +00:00
2019-01-25 10:25:25 +00:00
2019-01-25 10:25:25 +00:00
2019-01-25 10:25:25 +00:00
2019-01-25 10:25:25 +00:00
2019-01-25 10:25:25 +00:00
2019-01-25 10:25:25 +00:00
2019-01-25 10:25:25 +00:00
2019-01-25 10:25:25 +00:00
2018-11-28 11:43:49 +00:00
2018-11-28 11:43:49 +00:00
2018-11-28 11:43:49 +00:00
2018-11-28 11:43:49 +00:00
2018-11-28 11:43:49 +00:00
2018-11-28 11:43:49 +00:00
2018-11-28 11:43:49 +00:00
2018-11-28 11:43:49 +00:00
2018-03-14 11:00:48 +00:00
2020-05-13 10:17:03 +01:00
2018-12-05 00:47:59 +00:00
2020-02-12 13:29:57 -08:00
2018-06-04 14:26:05 +00:00
2019-07-04 08:43:20 +00:00
2020-02-19 23:41:07 -05:00
2018-03-09 12:24:42 +00:00
2018-03-09 12:24:42 +00:00
2020-01-14 10:19:53 +00:00
2019-11-20 18:24:10 -08:00
2019-11-20 18:24:10 -08:00
2020-02-18 14:05:55 -08:00
2018-03-14 11:00:57 +00:00
2018-03-14 11:00:57 +00:00
2018-05-22 14:36:58 +00:00
2020-02-10 18:04:58 -08:00
2018-03-06 13:48:39 +00:00
2018-03-06 13:49:16 +00:00
2018-03-05 15:21:04 +00:00
2018-05-02 13:17:26 +00:00
2018-06-21 13:35:44 +00:00
2019-05-22 21:28:20 +00:00
2019-05-22 21:28:20 +00:00
2019-05-22 21:28:20 +00:00
2019-05-22 21:28:20 +00:00
2019-05-22 21:28:20 +00:00
2019-05-22 21:28:20 +00:00
2019-05-22 21:28:20 +00:00
2018-03-05 15:21:04 +00:00
2018-03-09 12:24:30 +00:00
2019-08-24 15:11:41 +00:00
2020-02-19 14:03:48 +00:00
2019-09-23 18:51:00 +00:00
2019-12-11 12:05:22 +00:00
2019-09-06 20:32:37 +00:00
2020-01-09 17:37:52 -05:00
2020-01-17 20:09:53 -05:00
2019-08-13 22:14:37 +00:00
2020-01-09 17:37:52 -05:00
2019-08-29 01:13:41 +00:00
2020-01-09 17:37:52 -05:00
2019-08-20 22:04:10 +00:00
2020-04-14 22:05:22 -04:00
2019-08-13 22:14:37 +00:00
2020-01-24 12:15:10 -08:00
2019-11-01 01:57:48 -07:00
2019-10-09 09:15:34 +00:00
2020-02-13 10:16:06 -08:00
2018-03-06 13:48:20 +00:00
2018-03-06 13:48:20 +00:00
2020-01-14 10:19:53 +00:00
2019-09-19 16:26:14 +00:00
2020-02-17 15:38:08 -08:00
2019-07-17 10:53:13 +00:00
2019-12-11 18:02:14 -08:00
2019-06-26 00:08:22 +00:00
2019-12-11 18:02:14 -08:00
2019-08-21 19:14:38 +00:00
2019-03-12 09:28:19 +00:00
2019-10-11 08:36:54 +00:00
2018-03-09 12:24:06 +00:00
2018-07-11 08:40:19 +00:00
2018-08-06 22:37:44 +00:00
2018-06-04 14:26:05 +00:00
2019-03-26 11:16:01 +00:00
2018-03-14 11:00:43 +00:00
2019-03-05 17:16:07 +00:00
2019-04-10 18:26:36 +00:00
2019-08-13 22:32:26 +00:00
2019-03-01 09:46:29 +00:00
2019-03-26 10:49:09 +00:00
2018-03-21 17:12:53 +00:00
2018-03-05 14:01:38 +00:00
2018-06-04 14:26:05 +00:00
2018-03-05 15:21:04 +00:00
2018-06-04 14:26:05 +00:00
2018-06-21 13:35:44 +00:00
2018-03-14 11:00:43 +00:00
2019-12-30 14:24:25 -05:00
2018-11-27 18:57:43 +00:00
2018-11-27 18:57:43 +00:00
2018-11-27 18:57:43 +00:00
2018-11-27 18:57:43 +00:00
2019-05-14 13:04:25 +00:00
2018-11-27 18:57:43 +00:00
2018-11-27 18:57:43 +00:00
2018-11-27 18:57:43 +00:00
2018-11-27 18:57:43 +00:00
2018-11-27 18:57:43 +00:00
2018-11-27 18:57:43 +00:00
2018-11-27 18:57:43 +00:00
2018-11-27 18:57:43 +00:00
2018-11-27 18:57:43 +00:00
2018-11-27 18:57:43 +00:00
2018-11-27 18:57:43 +00:00
2019-05-14 13:04:25 +00:00
2019-05-14 13:04:25 +00:00
2019-05-14 13:04:25 +00:00
2018-11-27 18:57:43 +00:00
2020-04-23 14:26:32 +09:00
2020-02-18 10:09:05 -08:00
2020-02-14 15:49:52 -08:00
2019-09-15 08:35:08 +00:00
2018-01-08 16:25:40 +00:00
2019-04-15 10:06:26 +00:00
2018-06-21 13:36:22 +00:00
2018-03-19 14:14:28 +00:00
2018-03-19 14:14:10 +00:00
2018-03-21 17:12:53 +00:00
2020-02-17 09:30:45 +00:00
2018-02-23 10:46:07 +00:00
2018-06-04 14:26:05 +00:00
2018-03-05 15:21:04 +00:00
2018-03-05 15:21:11 +00:00
2018-08-04 01:22:12 +00:00
2018-08-04 01:22:12 +00:00
2018-08-04 01:22:12 +00:00
2018-03-06 13:48:30 +00:00
2019-12-10 11:09:40 +00:00
2018-11-27 18:57:43 +00:00
2018-11-27 18:57:43 +00:00
2018-11-27 18:57:43 +00:00
2018-11-27 18:57:43 +00:00