Dana Jansens
4416f3525b
Canonicalize generated functions for Core witnesses ( #7729 )
...
Use a single `SemIR::Function` per `Core` interface method, whether it's
generated locally or imported. This prevents generating duplicate
functions, which lead to different types when the witness appears in a
`FacetValue` as part of a specific for a class.
We use a `CanonicalValueStore` of `GeneratedFunction` objects that allow
finding an existing FunctionId for a `Generated` special function before
(re-)generating it. Mangling for `Generated` functions is also moved to
use the values from the `GeneratedFunction`'s canonicalization key, so
that we have a consistent source of truth for the unique ID of a
`Generated` function across all files.
New tests are in
`toolchain/check/testdata/impl/custom_witness/destroy.carbon`.
2026-09-15 16:02:13 +00:00
..
2026-05-21 00:02:29 +00:00
2026-04-23 20:11:04 +00:00
2026-05-14 08:29:17 +00:00
2026-07-11 01:22:44 +00:00
2026-09-02 00:33:32 +00:00
2026-08-18 17:47:58 +00:00
2026-06-11 16:45:39 +00:00
2025-11-14 00:40:26 +00:00
2026-06-08 02:42:23 +00:00
2026-06-19 00:22:05 +00:00
2026-07-29 19:53:12 +00:00
2026-08-19 01:00:13 +00:00
2026-07-30 21:50:13 +00:00
2026-07-30 21:50:13 +00:00
2026-06-08 02:42:23 +00:00
2026-07-11 01:22:44 +00:00
2025-07-02 19:21:01 +00:00
2026-06-04 00:33:33 +00:00
2026-04-24 17:33:23 +00:00
2026-04-24 17:33:23 +00:00
2026-08-06 13:32:37 +00:00
2026-08-06 13:32:37 +00:00
2026-08-06 13:32:37 +00:00
2026-08-06 13:32:37 +00:00
2026-01-30 22:24:18 +00:00
2026-01-30 22:24:18 +00:00
2026-05-14 08:29:17 +00:00
2026-06-07 16:27:22 +00:00
2026-07-20 21:45:17 +00:00
2026-08-19 01:00:13 +00:00
2026-09-10 22:29:52 +00:00
2026-04-23 20:11:04 +00:00
2026-09-15 16:02:13 +00:00
2026-09-15 16:02:13 +00:00
2026-07-14 22:58:05 +00:00
2026-07-14 22:58:05 +00:00
2026-06-13 00:22:00 +00:00
2026-02-18 22:17:15 +00:00
2025-04-25 16:06:10 +00:00
2026-09-08 18:39:57 +00:00
2026-09-08 18:39:57 +00:00
2026-06-01 19:02:01 +00:00
2026-09-02 20:28:05 +00:00
2026-09-15 16:02:13 +00:00
2026-09-15 16:02:13 +00:00
2026-02-25 23:18:09 +00:00
2026-02-25 23:18:09 +00:00
2026-09-15 16:02:13 +00:00
2026-09-11 22:29:17 +00:00
2026-09-15 16:02:13 +00:00
2026-09-15 16:02:13 +00:00
2026-09-03 17:06:22 +00:00
2026-09-03 17:06:22 +00:00
2026-09-01 16:12:34 +00:00
2026-07-20 21:45:17 +00:00
2026-07-20 21:45:17 +00:00
2025-07-10 21:21:19 +00:00
2026-07-08 17:07:10 +00:00
2026-09-15 16:02:13 +00:00
2026-07-20 19:15:09 +00:00
2026-07-30 19:59:10 +00:00
2025-10-30 18:03:34 +00:00
2026-05-14 08:29:17 +00:00
2026-05-14 08:29:17 +00:00
2026-06-29 17:41:23 +00:00
2026-09-10 16:39:08 +00:00
2026-05-19 23:16:51 +00:00
2026-03-24 20:56:44 +00:00
2026-09-08 20:41:58 +00:00
2026-09-10 23:49:07 +00:00
2026-09-10 16:39:08 +00:00
2026-07-08 17:07:10 +00:00
2026-07-14 22:58:05 +00:00
2026-09-03 17:06:22 +00:00
2026-05-14 08:29:17 +00:00
2026-08-11 19:29:46 +00:00
2026-09-15 16:02:13 +00:00
2026-09-11 00:22:27 +00:00
2026-02-19 16:24:07 +00:00
2026-06-01 19:19:08 +00:00
2026-06-07 16:27:22 +00:00
2026-06-08 02:42:23 +00:00
2026-06-08 02:42:23 +00:00
2026-05-14 08:29:17 +00:00
2026-08-11 19:29:46 +00:00
2026-07-08 17:07:10 +00:00
2026-07-08 17:07:10 +00:00
2026-06-13 00:22:00 +00:00
2025-11-13 17:04:58 +00:00
2026-07-30 21:50:13 +00:00
2026-06-15 20:30:07 +00:00
2026-05-14 08:29:17 +00:00
2026-05-14 08:29:17 +00:00
2026-09-08 20:41:58 +00:00
2026-05-14 08:29:17 +00:00
2026-05-14 08:29:17 +00:00
2025-11-13 23:00:20 +00:00
2026-07-29 16:25:23 +00:00
2026-07-20 19:15:09 +00:00
2026-05-14 08:29:17 +00:00
2026-05-14 08:29:17 +00:00
2026-06-09 21:10:18 +00:00
2026-08-07 16:10:01 +00:00
2026-08-07 16:10:01 +00:00
2026-09-08 20:41:58 +00:00
2026-05-11 14:17:18 +00:00
2026-07-07 13:30:53 +00:00
2026-07-07 13:30:53 +00:00
2025-04-25 16:06:10 +00:00
2026-09-15 16:02:13 +00:00
2026-05-14 08:29:17 +00:00
2026-05-14 08:29:17 +00:00
2026-07-20 19:15:09 +00:00