Commit 3aa930d
committed
Function attribute for standard vector calling convention variant: riscv_vector_cc
Standard vector calling convention variant will only enabled when function has
vector argument or returing value by default, however user may also want to
invoke function without that during a vectorized loop at some
situation, but it will cause a huge performance penalty due to vector
register store/restore.
So user can declare function with this riscv_vector_cc attribute like below,
that could enforce function will use standard vector calling convention
variant.
```c
void foo() __attribute__((riscv_vector_cc));
```1 parent 84f4288 commit 3aa930d
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
318 | 318 | | |
319 | 319 | | |
320 | 320 | | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
321 | 327 | | |
322 | 328 | | |
323 | 329 | | |
| |||
0 commit comments