mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[AutoDiff upstream] Add differentiability_witness_function instruction. (#29765)
The `differentiability_witness_function` instruction looks up a differentiability witness function (JVP, VJP, or transpose) for a referenced function via SIL differentiability witnesses. Add round-trip parsing/serialization and IRGen tests. Notes: - Differentiability witnesses for linear functions require more support. `differentiability_witness_function [transpose]` instructions do not yet have IRGen. - Nothing currently generates `differentiability_witness_function` instructions. The differentiation transform does, but it hasn't been upstreamed yet. Resolves TF-1141.
This commit is contained in:
@@ -55,7 +55,7 @@ const uint16_t SWIFTMODULE_VERSION_MAJOR = 0;
|
||||
/// describe what change you made. The content of this comment isn't important;
|
||||
/// it just ensures a conflict if two people change the module format.
|
||||
/// Don't worry about adhering to the 80-column limit for this line.
|
||||
const uint16_t SWIFTMODULE_VERSION_MINOR = 539; // swift master-rebranch
|
||||
const uint16_t SWIFTMODULE_VERSION_MINOR = 540; // differentiability_witness_function instruction
|
||||
|
||||
/// A standard hash seed used for all string hashes in a serialized module.
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user