Peter Wang
337877a67b
Fix tabling of subtypes.
...
compiler/table_gen.m:
Find the maximum value used by an enum type to determine the size of
a trie node required for its step. Previously the code counted the
number of alternatives in the enum type, which does not work for
subtypes.
compiler/hlds_pred.m:
Update comment.
runtime/mercury_ml_expand_body.h:
runtime/mercury_deconstruct_macros.h:
Move some macros from mercury_ml_expand_body.h to
mercury_deconstruct_macros.h, and add MR_ prefixes.
runtime/mercury_construct.c:
Update comment.
runtime/mercury_table_type_body.h:
Use macros to search the ptag layout array or secondary tag array
if it is not possible to directly index them (which is the case for
subtypes).
tests/tabling/Mmakefile:
tests/tabling/table_subtype_du.m:
tests/tabling/table_subtype_du.exp:
tests/tabling/table_subtype_enum.m:
tests/tabling/table_subtype_enum.exp:
Add test cases.
2021-04-09 17:41:23 +10:00
..
2021-01-13 15:24:23 +11:00
2018-08-02 14:45:42 +10:00
2018-06-09 17:43:12 +10:00
2018-06-09 17:43:12 +10:00
2018-06-09 17:43:12 +10:00
2018-06-09 17:43:12 +10:00
2018-06-09 17:43:12 +10:00
2018-06-09 17:43:12 +10:00
2018-06-09 17:43:12 +10:00
2018-06-09 17:43:12 +10:00
2018-06-09 17:43:12 +10:00
2018-06-09 17:43:12 +10:00
2018-06-09 17:43:12 +10:00
2020-07-24 17:14:07 +10:00
2018-06-09 17:43:12 +10:00
2018-06-09 17:43:12 +10:00
2018-06-09 17:43:12 +10:00
2018-06-09 17:43:12 +10:00
2020-10-13 13:32:32 +11:00
2020-10-13 13:32:32 +11:00
2021-04-09 17:41:23 +10:00
2021-04-09 17:36:38 +10:00
2021-01-23 19:41:51 +11:00
2020-10-25 14:45:35 +11:00
2018-07-23 10:26:29 +10:00
2018-06-09 17:43:12 +10:00
2021-04-09 17:41:23 +10:00
2018-08-30 05:14:38 +10:00
2018-08-30 05:14:38 +10:00
2018-06-09 17:43:12 +10:00
2018-08-30 05:14:38 +10:00
2018-06-09 17:43:12 +10:00
2018-06-09 17:43:12 +10:00
2018-06-09 17:43:12 +10:00
2018-06-09 17:43:12 +10:00
2019-10-08 21:36:11 +11:00
2018-06-09 17:43:12 +10:00
2018-06-09 17:43:12 +10:00
2018-06-09 17:43:12 +10:00
2018-06-09 17:43:12 +10:00
2018-06-09 17:43:12 +10:00
2018-06-09 17:43:12 +10:00
2021-04-09 17:41:23 +10:00
2018-06-09 17:43:12 +10:00
2018-06-09 17:43:12 +10:00
2018-06-09 17:43:12 +10:00
2018-10-09 05:27:36 +00:00
2018-06-09 17:43:12 +10:00
2018-06-09 17:43:12 +10:00
2018-06-09 17:43:12 +10:00
2018-06-09 17:43:12 +10:00
2019-10-08 21:36:11 +11:00
2018-06-09 17:43:12 +10:00
2018-06-09 17:43:12 +10:00
2019-06-10 13:30:49 +10:00
2019-06-10 13:30:49 +10:00
2019-06-10 13:30:49 +10:00
2021-01-25 16:32:49 +11:00
2018-06-09 17:43:12 +10:00
2020-10-25 14:45:35 +11:00
2018-06-09 17:43:12 +10:00
2018-06-09 17:43:12 +10:00
2018-06-09 17:43:12 +10:00
2018-06-09 17:43:12 +10:00
2018-06-09 17:43:12 +10:00
2018-06-09 17:43:12 +10:00
2018-08-10 14:47:20 +10:00
2018-06-09 17:43:12 +10:00
2019-06-08 16:40:24 +10:00
2018-06-09 17:43:12 +10:00
2018-06-09 17:43:12 +10:00
2020-04-11 19:30:58 +10:00
2018-06-09 17:43:12 +10:00
2018-06-09 17:43:12 +10:00
2018-06-09 17:43:12 +10:00
2018-06-09 17:43:12 +10:00
2018-06-09 17:43:12 +10:00
2018-06-09 17:43:12 +10:00
2020-04-28 10:55:18 +10:00
2020-04-28 10:55:18 +10:00
2018-06-09 17:43:12 +10:00
2018-06-09 17:43:12 +10:00
2018-06-09 17:43:12 +10:00
2018-06-09 17:43:12 +10:00
2020-10-13 13:32:32 +11:00
2018-06-09 17:43:12 +10:00
2018-08-19 12:19:19 +10:00
2018-08-19 12:19:19 +10:00
2018-06-09 17:43:12 +10:00
2018-06-09 17:43:12 +10:00
2018-10-09 05:27:36 +00:00
2018-06-09 17:43:12 +10:00
2018-08-19 12:19:19 +10:00
2018-06-09 17:43:12 +10:00
2018-08-30 05:14:38 +10:00
2018-08-30 05:14:38 +10:00
2021-04-09 17:41:23 +10:00
2018-08-30 05:14:38 +10:00
2018-06-09 17:43:12 +10:00
2018-06-09 17:43:12 +10:00
2018-08-19 12:19:19 +10:00
2018-06-09 17:43:12 +10:00
2018-06-09 17:43:12 +10:00
2018-06-09 17:43:12 +10:00
2018-06-09 17:43:12 +10:00
2018-06-09 17:43:12 +10:00
2018-06-09 17:43:12 +10:00
2018-06-09 17:43:12 +10:00
2018-06-09 17:43:12 +10:00
2018-06-09 17:43:12 +10:00
2018-06-09 17:43:12 +10:00
2018-09-11 10:55:30 +10:00
2018-09-11 10:55:30 +10:00
2018-06-09 17:43:12 +10:00
2018-06-09 17:43:12 +10:00
2018-06-09 17:43:12 +10:00
2021-01-13 14:22:21 +11:00
2021-04-05 16:35:44 +10:00
2021-04-05 16:35:44 +10:00
2018-07-23 10:26:29 +10:00
2018-06-09 17:43:12 +10:00
2020-10-13 13:32:32 +11:00
2020-10-13 13:32:32 +11:00
2018-07-23 10:26:29 +10:00
2020-07-24 17:14:07 +10:00
2018-08-19 12:19:19 +10:00
2018-06-09 17:43:12 +10:00
2018-07-23 10:26:29 +10:00
2018-06-09 17:43:12 +10:00
2021-02-14 20:30:08 +11:00
2018-06-09 17:43:12 +10:00
2018-06-09 17:43:12 +10:00
2019-09-13 15:51:02 +10:00
2019-10-30 11:21:02 +11:00
2018-06-09 17:43:12 +10:00
2018-06-09 17:43:12 +10:00
2021-04-09 17:41:23 +10:00
2018-06-09 17:43:12 +10:00
2018-06-09 17:43:12 +10:00
2018-06-09 17:43:12 +10:00
2018-06-09 17:43:12 +10:00
2018-06-09 17:43:12 +10:00
2018-06-09 17:43:12 +10:00
2018-08-30 05:14:38 +10:00
2018-06-09 17:43:12 +10:00
2020-04-28 13:36:58 +10:00
2018-08-30 05:14:38 +10:00
2018-06-09 17:43:12 +10:00
2018-08-19 12:19:19 +10:00
2018-06-09 17:43:12 +10:00
2018-10-09 05:27:36 +00:00
2018-06-09 17:43:12 +10:00
2018-06-09 17:43:12 +10:00
2018-11-29 06:01:42 +00:00
2018-07-23 10:26:29 +10:00
2018-06-09 17:43:12 +10:00
2020-01-17 17:09:49 +11:00
2018-06-09 17:43:12 +10:00
2020-02-18 13:07:24 +11:00
2020-02-18 13:07:24 +11:00
2018-06-09 17:43:12 +10:00
2018-06-09 17:43:12 +10:00
2018-08-30 05:14:38 +10:00
2021-04-09 17:41:23 +10:00
2018-06-09 17:43:12 +10:00
2018-06-09 17:43:12 +10:00
2018-06-09 17:43:12 +10:00
2018-06-09 17:43:12 +10:00
2020-07-24 17:14:07 +10:00
2018-06-09 17:43:12 +10:00
2018-06-09 17:43:12 +10:00
2020-05-30 23:13:42 +10:00
2018-06-09 17:43:12 +10:00
2018-06-09 17:43:12 +10:00
2018-06-09 17:43:12 +10:00
2020-03-15 17:05:47 +11:00
2018-06-09 17:43:12 +10:00
2021-03-21 17:30:53 +11:00
2019-06-10 13:30:49 +10:00
2020-10-13 13:32:32 +11:00