Skip to content

Commit a022457

Browse files
committed
docs: update documentation of optimization related semantic attributes
1 parent 3136218 commit a022457

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

docs/HighLevelSILOptimizations.rst

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -392,16 +392,25 @@ Optimize semantics attribute
392392
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
393393

394394
The optimize attribute adds function-specific directives to the optimizer.
395-
396395
The optimize attribute supports the following tags:
397396

398-
sil.specialize.generic.never
397+
optimize.sil.specialize.generic.never
399398

400-
The sil optimizer should never create generic specializations of this function.
399+
Disable generic specializations of this function.
401400

402401
optimize.sil.specialize.generic.partial.never
403402

404-
The sil optimizer should never create generic partial specializations of this function.
403+
Disable create generic partial specializations of this function.
404+
405+
optimize.sil.specialize.generic.size.never
406+
407+
Disable generic specializations of this function when optimizing for code
408+
size (-Osize).
409+
410+
optimize.sil.specialize.owned2guarantee.never
411+
412+
Disable function signature optimization which converts an "owned" to a
413+
"guaranteed" function parameter.
405414

406415
Availability checks
407416
~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)