mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
- 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
21 lines
932 B
Plaintext
21 lines
932 B
Plaintext
// RUN: %sil-passpipeline-dumper -Onone | %FileCheck %s
|
|
|
|
// Use this testfile to check if the `swift-frontend -sil-passpipeline-dumper` option works.
|
|
// RUN: %swift_frontend_plain -sil-passpipeline-dumper -Onone | %FileCheck %s
|
|
|
|
// REQUIRES: swift_in_compiler
|
|
|
|
// CHECK: ---
|
|
// CHECK: name: Non-Diagnostic Mandatory Optimizations
|
|
// CHECK: passes: [ "for-each-loop-unroll", "mandatory-arc-opts", "onone-prespecializer",
|
|
// CHECK-NEXT: "cmo" ]
|
|
// CHECK: ---
|
|
// CHECK: name: Serialization
|
|
// CHECK: passes: [ "serialize-sil", "sil-moved-async-var-dbginfo-propagator",
|
|
// CHECK-NEXT: "ownership-model-eliminator" ]
|
|
// CHECK: ---
|
|
// CHECK: name: Rest of Onone
|
|
// CHECK: passes: [ "use-prespecialized", "function-stack-protection", "late-onone-simplification",
|
|
// CHECK-NEXT: "cleanup-debug-steps", "sil-debuginfo-gen" ]
|
|
// CHECK: ...
|