This patch provides a proof-of-concept implementation of the proposal. https://github.com/riscv-non-isa/rvv-intrinsic-doc/issues/120
In this patch, we create a new attribute rvv_policy to annotate C
intrinsics with its tail/inactive elements policy. The syntax is
__attribute__((rvv_policy(tama))) vint32m1_t vadd_vv_i8m1_tama(...);
The possible policies are tama, tamu, tuma, tumu.
ta: tail agnostic
tu: tail undisturbed
ma: inactive masked-off agnostic
mu: inactive masked-off undisturbed
The attribute is used in riscv_vector.h. This implementation will not increase the number of clang builtins.
Nit, but the use of could seems out of place in this documentation. Is can or may perhaps more common?