Erik Eckstein
0a8c60290f
AST: add Type.interfaceTypeOfArchetype and some related APIs
2025-08-26 16:38:19 +02:00
Erik Eckstein
0a953b60ca
SIL/AST: add var InjectEnumAddrInst.element and var EnumElementDecl.hasAssociatedValues
2025-08-03 11:06:15 +02:00
Anthony Latsis
5620abbad8
Bridging: Bridge swift::CharSourceRange directly
2025-07-15 21:34:48 +01:00
Anthony Latsis
9001ce4687
Bridging: Bridge swift::SourceRange directly
2025-07-15 21:33:28 +01:00
Anthony Latsis
6eb5d7d857
Bridging: Bridge swift::SourceLoc directly
2025-07-15 21:33:06 +01:00
Anthony Latsis
8cbf5a26e4
Bridging: Bridge swift::DeclBaseName directly
2025-07-10 17:58:13 +01:00
Anthony Latsis
0e0fbc4160
Bridging: Bridge swift::Identifier directly
2025-07-10 17:58:13 +01:00
Anthony Latsis
f131fece3f
[NFC] Bridging: Rework include caveats
2025-07-10 17:58:13 +01:00
Anthony Latsis
b803861257
Bridging: Rename USED_IN_CPP_SOURCE and define it in Basic/SwiftBridging.h
2025-07-10 17:58:13 +01:00
Alexis Laferrière
81a0f98783
Merge pull request #82194 from xymus/cdecl-parser
...
Parser: Accept `@cdecl` with an optional identifier for a custom C name
2025-06-27 15:06:11 -07:00
eeckstein
1d3895610e
Merge pull request #82349 from eeckstein/alloc-box-to-stack
...
Optimizer: re-implement and improve the AllocBoxToStack pass
2025-06-21 07:28:18 +02:00
Anthony Latsis
dd78cd6dbe
ASTBridging: Bridge swift::PlatformKind directly
2025-06-20 16:46:03 +01:00
Anthony Latsis
de46b95e7e
ASTBridging: Bridge swift::GenericTypeParamKind directly
2025-06-20 16:46:03 +01:00
Anthony Latsis
dcbf2781c5
ASTBridging: Bridge swift::RequirementReprKind directly
2025-06-20 16:46:03 +01:00
Anthony Latsis
69a27e1735
ASTBridging: Bridge swift::LayoutConstraintKind directly
2025-06-20 16:46:03 +01:00
Anthony Latsis
b347aedeb0
ASTBridging: Encapsulate some operations on BridgedLayoutConstraint
...
NB: Switching from factory methods to initializers as well crashes on
Windows.
2025-06-20 16:44:49 +01:00
Erik Eckstein
1f304e5609
SIL: improve APIs for Box types
...
* move `isBox` from `SIL.Type` to `TypeProperties` to make it also available for AST types
* add `BoxFieldsArray.isMutable(fieldIndex:)`
2025-06-20 08:14:59 +02:00
Erik Eckstein
d025e9f7a5
SIL: add var Argument.decl: ValueDecl?
2025-06-20 08:14:58 +02:00
Anthony Latsis
30a8b59c6e
ASTBridging: Bridge swift::TypeAttrKind directly
2025-06-19 18:11:40 +01:00
Anthony Latsis
8501c8776e
ASTBridging: Bridge swift::ExternKind directly
2025-06-19 18:11:40 +01:00
Anthony Latsis
0b0ebfc9fb
ASTBridging: Bridge swift::ExposureKind directly
2025-06-19 18:11:40 +01:00
Anthony Latsis
b2b79f3ad7
ASTBridging: Bridge swift::InlineKind directly
2025-06-19 18:11:40 +01:00
Anthony Latsis
6527be558a
ASTBridging: Bridge swift::NonIsolatedModifier directly
2025-06-19 18:11:40 +01:00
Anthony Latsis
29ef3e300f
ASTBridging: Bridge swift::InheritActorContextModifier directly
2025-06-19 18:11:40 +01:00
Anthony Latsis
68bb4b33f9
ASTBridging: Bridge swift::EffectsKind directly
2025-06-19 18:11:40 +01:00
Anthony Latsis
12de029d97
ASTBridging: Bridge swift::AccessLevel directly
2025-06-19 18:11:40 +01:00
Anthony Latsis
cf09773d66
ASTBridging: Bridge swift::Associativity directly
2025-06-19 18:11:40 +01:00
Anthony Latsis
38360fe625
ASTBridging: Bridge swift::DeclAttrKind directly
2025-06-19 18:11:39 +01:00
Anthony Latsis
722bc0f086
ASTBridging: Bridge swift::DiagID directly
2025-06-19 12:29:27 +01:00
Anthony Latsis
3e9923f0c0
ASTBridging: Bridge swift::AccessorKind directly
2025-06-19 04:26:52 +01:00
Anthony Latsis
b40b192227
ASTBriding: Bridge swift::DiagnosticKind directly
2025-06-16 19:11:35 +01:00
Anthony Latsis
106d5f4461
{AST,Basic}Bridging: Use SWIFT_COMPUTED_PROPERTY
2025-06-16 19:11:32 +01:00
Alexis Laferrière
d9566c6c1e
ASTGen: Accept @cdecl
2025-06-11 12:42:38 -07:00
Meghana Gupta
0dfa1fc312
Update spelling for representing lifetime dependencies to @_lifetime
2025-06-07 12:49:07 -07:00
Pavel Yaskevich
4b5105df5e
[ASTGen] Implement bridging for using declaration
2025-05-30 15:52:09 -07:00
Erik Eckstein
28985f4d41
Swift AST: add var EnumDecl.hasRawType
2025-05-29 08:12:17 +02:00
Arnold Schwaighofer
13ff5abdb8
Introduce @specialized attribute
...
Implements SE-0460 -- the non-underscored version of @specialized.
It allows to specify "internal" (not abi affecting) specializations.
rdar://150033316
2025-05-23 13:12:47 -07:00
Erik Eckstein
dbd0af063c
AST: add some BuiltinFixedArray and IntegerType APIs
2025-05-15 21:29:02 +02:00
Pavel Yaskevich
917524de94
Merge pull request #81496 from xedin/inheritActorContext-alwayse
...
[AST/Sema/SIL] Implement `@_inheritActorContext(always)`
2025-05-15 08:17:30 -07:00
eeckstein
0d3edd629b
Merge pull request #81502 from eeckstein/debug-info-in-embedded
...
embedded: fix source location of diagnostics which appear in imported modules
2025-05-15 06:58:54 +02:00
Pavel Yaskevich
c0aca5384b
[ASTGen] Transform @_inheritActorContext into a custom attribute with an optional modifier
2025-05-14 20:07:59 -07:00
Becca Royal-Gordon
e71f837b1f
[NFC] Stub module selector DeclNameRef/Loc members
2025-05-14 11:16:02 -07:00
Erik Eckstein
5dc71aa0a5
AST/SIL: support source location in diagnostics for de-serialized debug info
...
Diagnostics only work with `SourceLoc` which is basically a pointer into a buffer of the loaded source file.
But when debug info is de-serialized, the SIL `Location` consists of a filename+line+column.
To "convert" this to a `SourceLoc`, the file must be loaded.
This change adds `DiagnosticEngine.getLocationFromExternalSource` for this purpose.
Also, the new protocol `ProvidingSourceLocation` - to which `SourceLoc` and `Location` conform - help to generalize the helper struct `Diagnostic` and make this "conversion" happen automatically.
2025-05-14 11:43:47 +02:00
Erik Eckstein
ff2341e83a
Swift AST/SIL: add Type APIs for Builtin.FixedArray
...
* `Type.isBuiltinFixedArray`
* `Type.builtinFixedArrayElementType`
2025-05-12 19:24:31 +02:00
Erik Eckstein
aacb4d458f
Swift AST: add Type.hasDynamicSelf
2025-05-08 19:21:08 +02:00
Michael Gottesman
9d59dbed17
[swift-settings] Now that we aren't using it immediately, remove it from tree.
...
We can always get it back from the git history.
rdar://150695113
2025-05-05 13:39:03 -07:00
Meghana Gupta
3cad5c5924
Merge pull request #81043 from meg-gupta/fixcow
...
Insert end_cow_mutation_addr for lifetime dependent values dependent on mutable addresses
2025-05-01 07:26:28 -07:00
Andrew Trick
b670a6d9cc
Merge pull request #81191 from atrick/var-walker-recursion
...
LifetimeDependenceDiagnostics: bug fixes and output clarity
2025-04-30 15:36:32 -07:00
Meghana Gupta
5395721a20
Bridge getSwiftMutableSpanDecl() and isBuiltinType()
2025-04-30 13:40:12 -07:00
Andrew Trick
25e9cbf3f1
[NFC] SwiftCompilerSource: bridge Function.accessorKindName
2025-04-29 22:09:42 -07:00