Doug Gregor
22eecacc35
Adopt unsafe annotations throughout the standard library
2025-02-26 14:28:01 -08:00
Alejandro Alonso
02401d4bb0
Remove some workarounds
2025-02-04 15:16:39 -08:00
Alejandro Alonso
581376e86e
Move variable into closure
2025-02-04 15:16:39 -08:00
Allan Shortlidge
ab99cac77d
AST: Promote BuiltinUnprotectedStackAlloc feature to baseline.
2024-07-09 14:28:28 -07:00
Karoy Lorentey
5679bf6697
[stdlib] Generalize temporary allocations for noncopyable result types
...
We can’t do typed throws here yet. (They involve implicit stack allocations that interfere with the explicit stack allocation builtins.)
2024-04-16 01:15:33 -07:00
Karoy Lorentey
38001ae739
[stdlib] Apply @Azoy’s remaining review notes (thanks!)
2024-03-18 11:03:49 -07:00
Karoy Lorentey
d7c402f2f2
[stdlib] Add partial ~Copyable support to withUnsafeTemporaryAllocation facility
...
Generalizing the result type is not yet possible, but T works!
2024-03-18 11:03:49 -07:00
Kuba Mracek
2f0883ab24
[embedded] Add Set to the embedded stdlib
2023-12-13 11:28:17 -08:00
Erik Eckstein
661264034b
stdlib: fix the #if guard for Builtin.unprotectedStackAlloc
...
rdar://107274878
2023-03-28 20:16:40 +02:00
Erik Eckstein
b2512ab5cb
stdlib: add an underscored _withUnprotectedUnsafeTemporaryAllocation
...
This function is similar to `withUnsafeTemporaryAllocation`, except that it doesn't trigger stack protection for the stack allocated memory.
2023-02-15 08:20:48 +01:00
Karoy Lorentey
aa3b48f432
[stdlib] Define platform version numbers for SwiftStdlib 5.6
2022-01-27 14:41:07 -08:00
Doug Gregor
6d5d23aa18
Add a feature flag for Builtin.stackAlloc and friends
...
... and use it in inlinable code so older compilers don't break on
newer standard libraries, fixing rdar://85574956.
2021-11-18 21:00:05 -08:00
Karoy Lorentey
1dbcf23515
[stdlib] Availability macros don't work in inlinable code 😩
2021-10-31 15:00:59 -07:00
Karoy Lorentey
8ed81ae063
[stdlib] Adopt availability macros
2021-10-31 15:00:58 -07:00
Jonathan Grynspan
208b8d493a
Fix incorrect precondition test (gt instead of gte) in TemporaryAllocation.swift
2021-10-26 14:19:25 -04:00
Jonathan Grynspan
f1bf7badba
[SE-0322] Temporary uninitialized buffers
...
Adds two new IRGen-level builtins (one for allocating, the other for deallocating), a stdlib shim function for enhanced stack-promotion heuristics, and the proposed public stdlib functions.
2021-10-25 11:20:10 -04:00