You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: riscv-c-api.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -360,7 +360,7 @@ The compiler uses an immediate offset of 40 for the `m` constraint, but for the
360
360
361
361
## Function Multi-version
362
362
363
-
Function multi-versioning(FMV) provides an approach to selecting the appropriate function according to the runtime environment. This feature is triggered by `target/target_clones` function attribute. The compiler generates the resolver function based on the IFUNC mechanism. It expects that there is an API in the runtime environment for FMV to check if it fulfils all extension requirements.
363
+
Function multi-versioning(FMV) provides an approach to selecting the appropriate function according to the runtime environment. This feature is triggered by `target/target_clones` function attribute. The compiler generates the resolver function based on the IFUNC mechanism. It expects that there is an API in the runtime environment for FMV to check if it fulfills all extension requirements.
NOTE: Should mangling name need to consider the feature come form extension dependency?
388
+
NOTE: Should mangling name need to consider the feature come from extension dependency?
389
389
390
-
### Runtime Featrue API
390
+
### Runtime Feature API
391
391
392
392
Here is the prototype of that API.
393
393
394
394
```
395
395
bool __riscv_ifunc_select(char *FeatureString)
396
396
```
397
397
398
-
Where FeatureString is a string that concatenating all target features belonging to a particular function. The form can be described in the following BNF form.
398
+
Where FeatureString is a string that concatenates all target features belonging to a particular function. The form can be described in the following BNF form.
0 commit comments