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
Derivatives registered for protocol requirements should be lowered to entries in SIL default witness tables. SILDeclRef already has support for derivative functions (via SILDeclRef::derivativeFunctionIdentifier).
The default derivative P.vjpAdd should appear in a default witness table for P.
You can start implementing this by:
Finding existing SILGen logic for generating default witness tables. Add logic that finds derivatives registered for protocol requirements (@derivative) and emits default witness table entries for those derivatives.
You can test generated default witness tables via swiftc -emit-silgen.
The text was updated successfully, but these errors were encountered:
Additional Detail from JIRA
md5: 06cd5fd689baa87628f642979fcf9761
Parent-Task:
Issue Description:
Resilient protocol default implementations are encoded in SIL default witness tables: https://github.com/apple/swift/blob/master/docs/SIL.rst#default-witness-tables.
Derivatives registered for protocol requirements should be lowered to entries in SIL default witness tables. SILDeclRef already has support for derivative functions (via
SILDeclRef::derivativeFunctionIdentifier
).The default derivative
P.vjpAdd
should appear in a default witness table forP
.You can start implementing this by:
Finding existing SILGen logic for generating default witness tables. Add logic that finds derivatives registered for protocol requirements (
@derivative
) and emits default witness table entries for those derivatives.You can test generated default witness tables via
swiftc -emit-silgen
.The text was updated successfully, but these errors were encountered: