Commit Graph

6 Commits

Author SHA1 Message Date
Kuba Mracek
d9ab93c2be [embedded] Mark basic-irgen-no-stdlib.swift as REQUIRES: swift_in_compiler 2023-09-25 12:45:43 -07:00
zoecarver
a5d7d2f020 [embedded] Require whole module optimization in embedded mode. 2023-09-15 16:41:06 -06:00
Kuba Mracek
25eb997a28 [embedded] Add basics of module serialization, importing and validation in embedded Swift.
- Add a flag to the serialized module (IsEmbeddedSwiftModule)
- Check on import that the mode matches (don't allow importing non-embedded module in embedded mode and vice versa)
- Drop TBD support, it's not expected to work in embedded Swift for now
- Drop auto-linking backdeploy libraries, it's not expected to backdeploy embedded Swift for now
- Drop prespecializations, not expected to work in embedded Swift for now
- Use CMO to serialize everything when emitting an embedded Swift module
- Change SILLinker to deserialize/import everything when importing an embedded Swift module
- Add an IR test for importing modules
- Add a deserialization validation test
2023-09-06 20:06:36 -07:00
zoecarver
26d223aedf [embedded] Mark test as unsupported on Windows. 2023-09-06 14:38:49 -07:00
zoecarver
09edae3035 [embedded] Use consistent target to make IR matching easier. 2023-09-06 10:59:31 -07:00
zoecarver
48789914bb [embedded] Add initial tests; fix two issues in IRGen. 2023-09-06 10:48:17 -07:00