Skip to content

Commit 3e51600

Browse files
committed
Add a preprocessor definitions to indidcate the landing pad labeling scheme
Also add 2 more macros to let user able to determine the scheme. Example code: ```c #ifdef __riscv_landing_pad #if defined(__riscv_landing_pad_unlabeled) ... #elif defined(__riscv_landing_pad_func_sig) ... #else #error "Unknown labeling scheme" #endif #endif ```
1 parent 5ebc2c8 commit 3e51600

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/c-api.adoc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ a|
2929
|`+__riscv_misaligned_fast+` |1 | Scalar misaligned accesses are fast.
3030
|`+__riscv_misaligned_slow+` |1 | Scalar misaligned accesses are supported, but may be substantially slower than aligned accesses.
3131
|`+__riscv_misaligned_avoid+` |1 | Scalar misaligned accesses are not supported and could trap. (see <<__riscv_misaligned_fast_slow_avoid, `+__riscv_misaligned_{fast,slow,avoid}+`>>)
32+
| `+__riscv_landing_pad+` | 1 | Defined if the landing pad is enabled.
33+
| `+__riscv_landing_pad_unlabeled+` | 1 | Defined if the unlabeled labeling scheme is enabled.
34+
| `+__riscv_landing_pad_func_sig+` | 1 | Defined if the function signature based labeling scheme is enabled.
3235
|===
3336

3437
[id=__riscv_v_min_vlen]

0 commit comments

Comments
 (0)