Skip to content

Commit 4b3050f

Browse files
Merge pull request #1722 from jasonrandrews/review2
Minor edits to function multiversioning Learning Path
2 parents 76c7a8b + 118a767 commit 4b3050f

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

content/learning-paths/cross-platform/function-multiversioning/changes-from-past-releases.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ layout: learningpathall
1515

1616
#### Semantic changes between LLVM 19 and LLVM 20
1717

18-
With LLVM 19 at least one more version other than the default is needed to trigger function multiversioning. With LLVM 20 a header file declaration:
18+
With LLVM 19 at least one more version other than the default is needed to trigger function multiversioning.
19+
20+
With LLVM 20 a header file declaration:
1921

2022
```c
2123
__attribute__((target_version("default"))) void f(void);

content/learning-paths/cross-platform/function-multiversioning/implementation-details.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,6 @@ When compiling `file2.c` a resolver is emitted for `func1` due to the presence o
101101

102102
Normally the called symbol is resolved at runtime (dynamically), however it may be possible to determine which function version to call at compile time (statically).
103103

104-
This may be possible when the caller function is compiled with a sufficiently high set of architecture features (explicitly by using the `target` attribute as an optimization hint, or the multiversioning attributes `target_version`/`target_clones`, and implicitly via command line options). See [the example](/learning-paths/cross-platform/function-multiversioning/changes-from-past-releases).
104+
This may be possible when the caller function is compiled with a sufficiently high set of architecture features (explicitly by using the `target` attribute as an optimization hint, or the multiversioning attributes `target_version`/`target_clones`, and implicitly via command line options). Refer the the example in the next section for details.
105105

106106
The compiler optimizes calls to versioned functions which can be statically resolved into direct calls. As a result the versioned function may be inlined into the call site.

content/learning-paths/cross-platform/function-multiversioning/semantics.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: About Function Multiversioning
2+
title: About function multiversioning
33
weight: 2
44

55
### FIXED, DO NOT MODIFY

content/learning-paths/cross-platform/function-multiversioning/streaming-mode.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ weight: 6
66
layout: learningpathall
77
---
88

9-
Function Multi Versioning is compatible with Arm streaming mode as long as the same calling convention is used across all function versions.
9+
Function multiversioning is compatible with Arm streaming mode as long as the same calling convention is used across all function versions.
1010

1111
Use a text editor to create a file named `streaming.c` with the code below:
1212

0 commit comments

Comments
 (0)