Files
swift-mirror/test/sil-passpipeline-dump/basic.test-sh
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

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: ...