mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Previously we were linking in all SIL entities if the input was a serialized non-SIB AST, and `-disable-sil-linking` wasn't specified. However none of the tests appear to want this behaviour. Stop calling `SerializedSILLoader::getAll`, and remove the `-disable-sil-linking` option, as this is now the default behaviour.
18 lines
744 B
Swift
18 lines
744 B
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: %target-swift-frontend %s -emit-module -parse-as-library -o %t
|
|
// RUN: llvm-bcanalyzer %t/differentiable_function.swiftmodule | %FileCheck %s -check-prefix=BCANALYZER
|
|
// RUN: %target-sil-opt -enable-sil-verify-all %t/differentiable_function.swiftmodule -o - | %FileCheck %s
|
|
|
|
// BCANALYZER-NOT: UnknownCode
|
|
|
|
import _Differentiation
|
|
|
|
func a(_ f: @differentiable (Float) -> Float) {}
|
|
// CHECK: func a(_ f: @differentiable (Float) -> Float)
|
|
|
|
func b(_ f: @differentiable(linear) (Float) -> Float) {}
|
|
// CHECK: func b(_ f: @differentiable(linear) (Float) -> Float)
|
|
|
|
func c(_ f: @differentiable (Float, @noDerivative Float) -> Float) {}
|
|
// CHECK: func c(_ f: @differentiable (Float, @noDerivative Float) -> Float)
|