Skip to content

[SR-14115] SIL: derivative type calculation for coroutines #54404

@dan-zheng

Description

@dan-zheng
Previous ID SR-14115
Radar None
Original Reporter @dan-zheng
Type Sub-task
Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Sub-task, AutoDiff
Assignee None
Priority Medium

md5: fe00df47fa9d2ad8d02ae88725898756

Parent-Task:

  • SR-14113 Support _read and _modify accessor differentiation

Issue Description:

SIL has dedicated coroutine function types: https://github.com/apple/swift/blob/master/docs/SIL.rst#coroutine-types

Figure out derivative type calculation for coroutines.

// Array.subscript.modify example
Original function type: $@yield_once @convention(method) <τ_0_0> (Int, @inout Array<τ_0_0>) -> @yields @inout τ_0_0 
Derivative function type: ???

Metadata

Metadata

Assignees

No one assigned

    Labels

    AutoDiffSILcompilerThe Swift compiler itselffeatureA feature request or implementation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions