[clang] [RISCV] Support __riscv_v_fixed_vlen for vbool types. (PR #76551)

Craig Topper via cfe-commits cfe-commits at lists.llvm.org
Sun Jan 14 23:57:43 PST 2024


================
@@ -2415,7 +2415,10 @@ only be a power of 2 between 64 and 65536.
 For types where LMUL!=1, ``__riscv_v_fixed_vlen`` needs to be scaled by the LMUL
 of the type before passing to the attribute.
 
-``vbool*_t`` types are not supported at this time.
+For ``vbool*_t`` types, ``__riscv_v_fixed_vlen`` needs to be divided by the
+number from the type name. For example, ``vbool8_t`` needs to use
----------------
topperc wrote:

It could, but the intention was that the value passed to the attribute should be the size of the type. That's the way LMUL is handled. LMUL 2 needs to pass 2*__riscv_v_fixed_vlen.

https://github.com/llvm/llvm-project/pull/76551


More information about the cfe-commits mailing list