Skip to content

Commit 6104e74

Browse files
authored
[AutoDiff] Update API/ABI status for attributes. (#28410)
`@differentiating` and `@transposing` are: - API/ABI stable to add. (The declaration is unaffected.) - API/ABI breaking to remove. Adding/removing `@noDerivative` is API/ABI breaking because it may change derivative code behavior.
1 parent b973555 commit 6104e74

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

include/swift/AST/Attr.def

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -514,20 +514,21 @@ DECL_ATTR(differentiable, Differentiable,
514514
91)
515515
DECL_ATTR(differentiating, Differentiating,
516516
OnFunc | LongAttribute | AllowMultipleAttributes |
517-
ABIStableToAdd | ABIStableToRemove | APIStableToAdd | APIStableToRemove |
517+
ABIStableToAdd | ABIBreakingToRemove | APIStableToAdd | APIBreakingToRemove |
518518
NotSerialized, 92)
519519
SIMPLE_DECL_ATTR(compilerEvaluable, CompilerEvaluable,
520520
OnAccessor | OnFunc | OnConstructor | OnSubscript |
521521
ABIStableToAdd | ABIStableToRemove | APIStableToAdd | APIStableToRemove |
522522
NotSerialized, 93)
523523
SIMPLE_DECL_ATTR(noDerivative, NoDerivative,
524524
OnVar |
525-
ABIStableToAdd | ABIStableToRemove | APIStableToAdd | APIStableToRemove,
525+
ABIBreakingToAdd | ABIBreakingToRemove | APIBreakingToAdd | APIBreakingToRemove,
526526
94)
527527
DECL_ATTR(transposing, Transposing,
528528
OnFunc | LongAttribute | AllowMultipleAttributes |
529-
ABIStableToAdd | ABIStableToRemove | APIStableToAdd | APIStableToRemove |
529+
ABIStableToAdd | ABIBreakingToRemove | APIStableToAdd | APIBreakingToRemove |
530530
NotSerialized, 96)
531+
// SWIFT_ENABLE_TENSORFLOW END
531532

532533
SIMPLE_DECL_ATTR(IBSegueAction, IBSegueAction,
533534
OnFunc |

0 commit comments

Comments
 (0)