We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1b6f02 commit aa1cef3Copy full SHA for aa1cef3
test/AutoDiff/differentiable_sil_function_type_parse.sil
@@ -34,3 +34,13 @@ bb0:
34
%ret = tuple ()
35
return %ret : $()
36
}
37
+
38
+sil @takeAndReturnLinear : $@convention(thin) (@differentiable(linear) (Float) -> Float) -> @differentiable(linear) (Float) -> Float {
39
+bb0(%0 : $@differentiable(linear) (Float) -> Float):
40
+ return %0 : $@differentiable(linear) (Float) -> Float
41
+}
42
43
+// CHECK-LABEL: sil @takeAndReturnLinear : $@convention(thin) (@differentiable(linear) (Float) -> Float) -> @differentiable(linear) (Float) -> Float {
44
+// CHECK: bb0([[ARG:%.*]] : $@differentiable(linear) (Float) -> Float):
45
+// CHECK: return [[ARG]] : $@differentiable(linear) (Float) -> Float
46
+// CHECK: }
0 commit comments