Skip to content

Commit 46c4bd7

Browse files
committed
Address craig's comment
1 parent 25a8781 commit 46c4bd7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

riscv-c-api.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ The compiler uses an immediate offset of 40 for the `m` constraint, but for the
360360

361361
## Function Multi-version
362362

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.
364364

365365
### Function Mangling
366366

@@ -385,17 +385,17 @@ Here is a example
385385
| target("arch=rv64gc") | "BASE-FUNC-NAME".zifencei_zicsr_m_f_d_c_a |
386386
| target("default") | "BASE-FUNC-NAME" |
387387

388-
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?
389389

390-
### Runtime Featrue API
390+
### Runtime Feature API
391391

392392
Here is the prototype of that API.
393393

394394
```
395395
bool __riscv_ifunc_select(char *FeatureString)
396396
```
397397

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.
399399

400400
```
401401
FeatureString := EXTENSIONS

0 commit comments

Comments
 (0)