Skip to content

Commit cf54e25

Browse files
committed
Add C++11 and C23 style syntax for riscv_vector_cc
1 parent 3aa930d commit cf54e25

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

riscv-c-api.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,14 @@ __attribute__((target("arch=+v"))) int foo(void) { return 0; }
318318
__attribute__((target("arch=+zbb"))) int foo(void) { return 1; }
319319
```
320320
321-
### `__attribute__((riscv_vector_cc))`
321+
### riscv_vector_cc
322+
323+
Supported Syntaxes:
324+
| Style | Syntax |
325+
| ------ | ----------------------------------- |
326+
| GNU | `__attribute__((riscv_vector_cc)))` |
327+
| C++11 | `[[riscv::vector_cc]]` |
328+
| C23 | `[[riscv::vector_cc]]` |
322329
323330
Functions declared with this attribute will use to the standard vector calling
324331
convention variant as defined in the RISC-V psABI, even if the function has

0 commit comments

Comments
 (0)