These two functions are described in RVV intrinsics doc
to read/write RVV CSRs. This matches what GCC does.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang/include/clang/Basic/riscv_vector.td | ||
---|---|---|
1511 | Do we need gnu_inline and artificial? The only intrinsics headers that have them in clang are in ppc_wrappers. X86 uses __attribute__((__always_inline__, __nodebug__ | |
1512 | X86 and arm_neon.h uses double underscore prefixes on all variables in intrinsic headers to reduce the chance of a collision with a user having a macro with the same name. |
clang/include/clang/Basic/riscv_vector.td | ||
---|---|---|
1511 | I just made it the same as GCC. | |
1512 | The function prototypes have already been defined in RVV intrinsics doc (https://github.com/riscv-non-isa/rvv-intrinsic-doc/blob/master/rvv-intrinsic-api.md#readwrite-urw-vector-csrs). |
clang/include/clang/Basic/riscv_vector.td | ||
---|---|---|
1512 | I'm only refering to csr, rv and value. Those don't need to match the intrinsics doc. They aren't visible to code using the header. |
clang/include/clang/Basic/riscv_vector.td | ||
---|---|---|
1512 | Oh I get it. |
please move those tests to test/CodeGen/RISCV/rvv-intrinsics and rename them without rvv- prefix.
clang/include/clang/Basic/riscv_vector.td | ||
---|---|---|
1511 | Why do you think making it same as GCC is better than same as other targets in clang? |
Do we need gnu_inline and artificial? The only intrinsics headers that have them in clang are in ppc_wrappers. X86 uses __attribute__((__always_inline__, __nodebug__