Skip to content

[SR-13670] Sema/SILGen: lower @derivative attribute directly to SIL differentiability witnesses #53952

Closed
@dan-zheng

Description

@dan-zheng
Previous ID SR-13670
Radar None
Original Reporter @dan-zheng
Type Sub-task
Status Closed
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s
Labels Sub-task
Assignee @dan-zheng
Priority Medium

md5: e5ce47fd74f7fc29e2c2f821747e676e

Parent-Task:

  • SR-13659 Retroactive derivative registration

is blocked by:

  • SR-13669 Differentiation: revamp transform to directly canonicalize differentiability witnesses

relates to:

  • TF-1037 [AD] Crash for @differentiable + @derivative attributes with different derivative generic signatures
  • TF-1042 [AD] RemoveASTContext::{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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions