You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ParseSIL] Fix [differentiable] attribute where clause parsing. (#24792)
Follow-up to #24762.
Fix `test/AutoDiff/differentiable_sil_attr.sil` to actually test
where clause parsing.
Fix SIL requirement parsing.
Friend PR to master: #24790
sil [differentiable source 0 wrt 0, 1 vjp @foo_vjp] @foo : $@convention(thin) <T, U, V> (@in_guaranteed T, @in_guaranteed U, @in_guaranteed V) -> @out V {
19
+
// CHECK-LABEL: sil [differentiable source 0 wrt 0, 1 vjp @foo_vjp where T : Differentiable, U : Differentiable, V : Differentiable] @foo
20
+
sil [differentiable source 0 wrt 0, 1 vjp @foo_vjp where T : Differentiable, U : Differentiable, V : Differentiable] @foo : $@convention(thin) <T, U, V> (@in_guaranteed T, @in_guaranteed U, @in_guaranteed V) -> @out V {
21
21
entry(%0 : $*V, %1 : $*T, %2 : $*U, %3 : $*V):
22
22
return undef: $()
23
23
}
24
24
25
-
sil @$foo_vjp : $@convention(thin) <T, U, V> (@in_guaranteed T, @in_guaranteed U, @in_guaranteed V) -> (@out V, @owned @callee_guaranteed (@in_guaranteed V) -> (@out T, @out U)) {
26
-
// %1 // user: %4
27
-
// %2 // user: %5
28
-
// %3 // user: %6
25
+
sil @foo_vjp : $@convention(thin) <T, U, V where T : Differentiable, U : Differentiable, V : Differentiable> (@in_guaranteed T, @in_guaranteed U, @in_guaranteed V) -> (@out V, @owned @callee_guaranteed (@in_guaranteed V) -> (@out T, @out U)) {
0 commit comments