Skip to content

Commit c68d562

Browse files
toppercShivam Gupta
authored and
Shivam Gupta
committed
[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 507b846 commit c68d562

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
@@ -458,6 +458,8 @@ LoongArch Support
458458
RISC-V Support
459459
^^^^^^^^^^^^^^
460460

461+
- ``__attribute__((rvv_vector_bits(N))) is now supported for RVV vbool*_t types.
462+
461463
CUDA/HIP Language Changes
462464
^^^^^^^^^^^^^^^^^^^^^^^^^
463465

0 commit comments

Comments
 (0)