Andrew Kelley 57ea6207d3 std.ArrayList: mark the appendNTimes methods inline
The previous commit introduced an optimization to the LLVM backend that
makes `@memset` lower more optimally when the element is comptime-known
and has a repeating byte pattern.

By making these functions inline, if the element parameter is
comptime-known at the callsite, it will be comptime-known in the
`@memset` call, causing more use of the LLVM `memset` intrinsic rather
than an inline for loop when using the LLVM backend.

This affects, for example, std.crypto.argon2, which calls
appendNTimesAssumeCapacity with a `[128]u64` as the element. This is now
lowered with a single `memset` call.
2023-04-28 13:24:43 -07:00
..
2023-04-23 21:06:21 +03:00
2023-04-25 11:23:40 -07:00
2023-04-23 21:06:21 +03:00
2023-03-25 14:09:00 +02:00
2023-04-25 11:23:41 -07:00
2023-04-25 11:23:41 -07:00
2023-04-26 00:02:55 -07:00
2023-04-27 11:10:38 +03:00
2023-04-21 16:36:10 -04:00
2022-12-13 13:14:20 +02:00
2023-04-23 21:06:21 +03:00
2023-04-22 13:09:15 +03:00
2023-04-15 10:33:08 -07:00
2023-04-20 15:17:07 -07:00
2023-04-23 13:16:42 -07:00
2023-04-25 10:37:49 -07:00
2023-04-25 11:23:41 -07:00
2022-09-11 23:18:43 -04:00
2023-04-23 21:06:21 +03:00
2023-04-23 21:06:21 +03:00
2023-04-23 21:06:21 +03:00
2023-04-23 21:06:21 +03:00
2023-04-23 21:06:21 +03:00
2023-03-17 17:50:25 +01:00
2023-04-23 20:39:28 +03:00
2023-04-13 02:47:16 -04:00
2023-04-23 21:06:21 +03:00