Andrew Trick
3897929e4a
LifetimeDependence: handle dependence on trivial values.
2024-12-16 16:09:37 -08:00
Erik Eckstein
62b26dc8c4
SIL: make isEmpty and singleElement available for all Sequences
...
and not just for `CollectionLikeSequence`.
To support stdlib's lazy map and filter sequences.
2024-12-10 16:28:11 +01:00
eeckstein
4a069c9926
Merge pull request #76790 from eeckstein/add-ast-module
...
SwiftCompilerSources: introduce the AST module
2024-10-02 10:50:18 +02:00
Erik Eckstein
fadff007a1
SwiftCompilerSources: move protocol BridgedRandomAccessCollection from the SIL to the Basic module
2024-10-02 07:10:29 +02:00
Allan Shortlidge
6f91b4156c
ASTGen/SIL: Suppress retroactive conformance warnings.
...
When building ASTGen and SIL using the Swift 6.0 compiler the compiler emits
diagnostics about various retroactive conformances. Since Swift code in the
compiler needs to remain compatible with the Swift 5.10 compiler for now, use
module qualification syntax to suppress the warning. I've also included the
`@retroactive` attribute in a comment to document the retroactive conformance
acknowledgement more explicitly.
NFC.
2024-10-01 17:07:03 -07:00
Erik Eckstein
3c368575b4
SwiftCompilerSources: add a few utility APIs
2024-04-10 13:38:10 +02:00
Andrew Trick
6b3d62cb5e
SwiftCompilerSources: Add append methods to SingleInlineArray.
2024-03-18 17:38:12 -07:00
Andrew Trick
d6d8323775
Add SingleInlineArray read/_modify accessors
...
For mutable access.
2024-03-04 10:17:13 -08:00
Andrew Trick
fcb8612c18
Format SingleInlineArray for use in lit tests.
2024-02-12 20:03:38 -08:00
Erik Eckstein
3229749257
SwiftCompilerSources: move some private utilities of passes into OptUtils
...
* `var Function.initializedGlobal`
* `func getGlobalInitialization`
and add `var CollectionLikeSequence.singleElement`
2024-01-10 09:34:01 +01:00
Erik Eckstein
80ace58104
SwiftCompilerSources: split SIL/Utils.swift into multiple files
2023-12-01 19:20:13 +01:00