[clang] [llvm] [clang][RISCV] Use macro to check if intrinsics are supported (PR #187197)
Craig Topper via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 7 08:18:48 PDT 2026
topperc wrote:
> > Do we want a difference between `__riscv_v_intrinsic_*` and `__riscv_intrinsic_*`?
>
> Umm that's what I was thinking earlier when I unified them, my thought of unifying them is to keep simplicity. When we distinguish scalar and vector with different suffix, we might also need additional set to distinguish vendor extensions, e.g. `__riscv_vendor_v_intrinsic_` and `__riscv_vendor_intrinsic_` which is more explicit but somehow make it more complex. I have no strong option though lol
Wouldn't vendor extensions be `__riscv_intrinsic_x*?
https://github.com/llvm/llvm-project/pull/187197
More information about the cfe-commits
mailing list