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
Do not generate implicit @differentiable attributes during @derivative attribute type-checking. This was a hack and recently caused problems in ASTScopeLookup logic (TF-815).
Instead, directly lower @derivative attributes to SIL differentiability witnesses during SILGen.
The text was updated successfully, but these errors were encountered:
I investigated this as part of SIL differentiability witnesses (TF-866). Changing attribute type-checking to not generate implicit @differentiable attributes was fine.
It seems blocked by SILGen: it is important that SIL [differentiable] attributes are generated in SILFunctionBuilder::addFunctionAttributes, and it's not clear how to do this if we remove implicit @differentiable attributes. This will likely be blocked until SIL differentiability witnesses are done.
Additional Detail from JIRA
md5: e5ce47fd74f7fc29e2c2f821747e676e
Parent-Task:
is blocked by:
relates to:
@differentiable
+@derivative
attributes with different derivative generic signaturesASTContext::{Differentiable,Derivative}Attrs
Issue Description:
Do not generate implicit
@differentiable
attributes during@derivative
attribute type-checking. This was a hack and recently caused problems in ASTScopeLookup logic (TF-815).Instead, directly lower
@derivative
attributes to SIL differentiability witnesses during SILGen.The text was updated successfully, but these errors were encountered: