Skip to content

Commit c7dde04

Browse files
toppercxgupta
authored andcommitted
[RISCV] Support __riscv_v_fixed_vlen for vbool types. (llvm#76551)
This adopts a similar behavior to AArch64 SVE, where bool vectors are represented as a vector of chars with 1/8 the number of elements. This ensures the vector always occupies a power of 2 number of bytes. A consequence of this is that vbool64_t, vbool32_t, and vool16_t can only be used with a vector length that guarantees at least 8 bits.
1 parent e5cd4b2 commit c7dde04

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

clang/docs/ReleaseNotes.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1290,6 +1290,8 @@ PowerPC Support
12901290
- Added support for ``builtin_cpu_supports`` on AIX, along with a subset of
12911291
features that can be queried.
12921292

1293+
- ``__attribute__((rvv_vector_bits(N))) is now supported for RVV vbool*_t types.
1294+
12931295
CUDA/HIP Language Changes
12941296
^^^^^^^^^^^^^^^^^^^^^^^^^
12951297

0 commit comments

Comments
 (0)