[libc-commits] [clang] [libc] [RFC][clang][libc] Extend the ext_vector_type attribute to support the scalable vector sizes (PR #183307)
David Sherwood via libc-commits
libc-commits at lists.llvm.org
Thu Feb 26 01:55:04 PST 2026
david-arm wrote:
> > I hadn't really considered that, didn't know it's a thing people did.
>
> @david-arm wasn't it something I've heard you discussing this morning?
I haven't looked at the patch yet, but yes in general people do at least write C code using a mixture of SVE and NEON builtins. There are bridging interfaces that let you move between SVE and NEON types, e.g. you can insert a uint8x16_t fixed-with NEON type into a scalable vector svuint16_t type. However, these types are very specific to AArch64 backends and I don't know if there is a generic way of doing this.
https://github.com/llvm/llvm-project/pull/183307
More information about the libc-commits
mailing list