Skip to content

Commit 51dc28d

Browse files
authored
[NFC] Add SWIFT_ENABLE_TENSORFLOW markers to docs/ABI/Mangling.rst. (#26597)
Follow-up to: - #25804 - #26595
1 parent 5bbe84b commit 51dc28d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/ABI/Mangling.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -516,10 +516,12 @@ Types
516516
FUNCTION-KIND ::= 'C' // C function pointer type
517517
FUNCTION-KIND ::= 'A' // @auto_closure function type (escaping)
518518
FUNCTION-KIND ::= 'E' // function type (noescape)
519+
.. SWIFT_ENABLE_TENSORFLOW
519520
FUNCTION-KIND ::= 'F' // @differentiable function type
520521
FUNCTION-KIND ::= 'G' // @differentiable function type (escaping)
521522
FUNCTION-KIND ::= 'H' // @differentiable(linear) function type
522523
FUNCTION-KIND ::= 'I' // @differentiable(linear) function type (escaping)
524+
.. SWIFT_ENABLE_TENSORFLOW END
523525

524526
function-signature ::= params-type params-type throws? // results and parameters
525527

@@ -583,15 +585,18 @@ mangled in to disambiguate.
583585
impl-function-type ::= type* 'I' FUNC-ATTRIBUTES '_'
584586
impl-function-type ::= type* generic-signature 'I' PSEUDO-GENERIC? FUNC-ATTRIBUTES '_'
585587

588+
.. SWIFT_ENABLE_TENSORFLOW
586589
FUNC-ATTRIBUTES ::= CALLEE-ESCAPE? DIFFERENTIABILITY-KIND? CALLEE-CONVENTION FUNC-REPRESENTATION? PARAM-CONVENTION* RESULT-CONVENTION* ('z' RESULT-CONVENTION)
587590

588591
PSEUDO-GENERIC ::= 'P'
589592

590593
CALLEE-ESCAPE ::= 'e' // @escaping (inverse of SIL @noescape)
591594

595+
.. SWIFT_ENABLE_TENSORFLOW
592596
DIFFERENTIABILITY-KIND ::= DIFFERENTIABLE | LINEAR
593597
DIFFERENTIABLE ::= 'd' // @differentiable
594598
LINEAR ::= 'l' // @differentiable(linear)
599+
.. SWIFT_ENABLE_TENSORFLOW END
595600

596601
CALLEE-CONVENTION ::= 'y' // @callee_unowned
597602
CALLEE-CONVENTION ::= 'g' // @callee_guaranteed

0 commit comments

Comments
 (0)