Files
mercury/compiler
Peter Wang 0925d052d8 Make type_range also succeed for discontiguous range of enum values.
compiler/switch_util.m:
    Make type_range succeed for a subtype where the constructors are
    assigned enum values in a discontiguous range. I checked that its
    callers do not expect all values in the range to necessarily
    be used by the type.

    Clarify find_int_lookup_switch_params a bit.

    Clarify comments.

compiler/dense_switch.m:
    Use need_range_check type instead of can_fail in dense_switch_info,
    as that is what the field actually means.

compiler/ml_simplify_switch.m:
    Use need_range_check type instead of bool.

tests/hard_coded/dense_lookup_switch_non2.m:
    Delete obsoleted XXX.
2021-04-13 15:04:55 +10:00
..
2020-12-29 19:39:14 +11:00
2020-03-15 19:37:18 +11:00
2021-03-15 11:16:31 +11:00
2021-04-09 17:41:23 +10:00
2020-10-09 18:44:24 +11:00
2020-11-30 17:34:42 +11:00
2020-11-30 17:34:42 +11:00
2020-11-30 17:34:42 +11:00
2020-11-30 17:34:42 +11:00
2020-11-30 17:34:42 +11:00
2021-03-15 11:16:31 +11:00
2020-07-17 10:48:13 +10:00
2020-11-30 17:34:42 +11:00
2020-11-07 14:14:07 +11:00
2020-07-17 10:48:13 +10:00
2021-04-09 17:41:23 +10:00
2021-04-09 17:41:23 +10:00
2021-03-15 11:16:31 +11:00
2020-07-17 14:25:08 +10:00
2019-10-27 02:53:46 +11:00
2019-08-31 13:00:06 +10:00
2019-10-05 16:48:48 +10:00
2020-11-23 10:42:15 +11:00
2021-04-09 17:41:23 +10:00
2020-04-11 19:30:58 +10:00
2021-02-25 11:14:49 +11:00
2021-03-24 22:02:18 +11:00
2020-10-09 19:30:46 +11:00
2020-07-17 14:25:08 +10:00
2019-04-15 03:30:15 +10:00
2020-08-24 05:39:41 +10:00
2020-08-24 05:39:41 +10:00
2020-08-24 05:39:41 +10:00
2021-03-15 11:16:31 +11:00
2019-06-26 23:41:16 +02:00
2020-11-30 17:34:42 +11:00
2020-01-14 19:10:58 +11:00
2020-07-17 14:25:08 +10:00
2020-07-17 14:25:08 +10:00
2020-11-30 17:34:42 +11:00
2021-04-09 17:41:23 +10:00
2019-10-27 02:53:46 +11:00
2020-10-30 13:20:21 +11:00
2020-07-17 14:25:08 +10:00
2020-11-30 17:34:42 +11:00
2020-11-30 17:34:42 +11:00
2020-07-17 10:48:13 +10:00