Richard Smith
4e5dccdbf7
When making a direct call to a thunk, inline the call in SemIR. ( #5642 )
...
This preserves the constant values of the arguments to the thunk, which
is important if the thunk requires conversion of an `IntLiteral` to some
other type. This should become unnecessary once we have form support,
but avoiding the indirection through a thunk function seems valuable
even once that support is in place.
To support this, track whether a function is a thunk on the Function
object, and if so, what the callee of the thunk is. This information is
also included in formatted SemIR when dumping the thunk.
2025-06-11 21:34:01 +00:00
..
2025-06-09 22:18:12 +00:00
2025-05-29 18:44:09 +00:00
2025-06-04 16:56:03 +00:00
2025-06-04 16:56:03 +00:00
2025-05-29 18:44:09 +00:00
2025-05-29 18:44:09 +00:00
2025-06-04 16:56:03 +00:00
2025-06-09 22:18:12 +00:00
2025-05-29 18:44:09 +00:00
2025-05-29 18:44:09 +00:00
2025-06-04 16:56:03 +00:00
2025-06-11 21:34:01 +00:00
2025-05-29 18:44:09 +00:00
2025-06-09 22:18:12 +00:00
2025-05-29 18:44:09 +00:00
2025-05-29 18:44:09 +00:00
2025-05-29 18:44:09 +00:00
2025-05-29 18:44:09 +00:00
2025-06-09 22:18:12 +00:00
2025-06-04 16:56:03 +00:00
2025-06-11 21:34:01 +00:00
2025-05-29 18:44:09 +00:00
2025-06-04 16:56:03 +00:00
2025-05-29 18:44:09 +00:00
2025-06-11 21:34:01 +00:00
2025-06-04 16:56:03 +00:00
2025-06-09 22:18:12 +00:00
2025-06-09 22:18:12 +00:00
2025-05-29 18:44:09 +00:00
2025-06-09 18:51:29 +00:00
2025-06-11 21:11:00 +00:00
2025-05-29 18:44:09 +00:00
2025-06-04 16:56:03 +00:00
2025-06-11 21:34:01 +00:00
2025-06-11 21:34:01 +00:00
2025-06-04 16:56:03 +00:00
2025-06-04 16:56:03 +00:00
2025-06-04 16:56:03 +00:00
2025-06-04 16:56:03 +00:00
2025-06-04 16:56:03 +00:00
2025-06-04 16:56:03 +00:00
2025-06-09 18:51:29 +00:00
2025-06-09 22:18:12 +00:00
2025-06-11 21:34:01 +00:00
2025-06-04 16:56:03 +00:00
2025-06-09 22:18:12 +00:00
2025-05-29 18:44:09 +00:00
2025-06-04 16:56:03 +00:00
2025-06-04 16:56:03 +00:00
2025-05-29 18:44:09 +00:00
2025-06-04 16:56:03 +00:00
2025-06-04 16:56:03 +00:00
2025-06-04 16:56:03 +00:00
2025-06-11 21:34:01 +00:00