TheDan64 / inkwell

It's a New Kind of Wrapper for Exposing LLVM (Safely)
https://thedan64.github.io/inkwell/
Apache License 2.0
2.38k stars 229 forks source link

Scalable vector type #541

Closed my4ng closed 3 weeks ago

my4ng commented 1 month ago

Scalable vector was added to LLVM 11, to support vector extensions with compile-time-unknown vector length such as arm's SVE and RISC-V's RVV. llvm_sys has the LLVMScalableVectorType, but inkwell currently has no support for it.

I am currently working on a solution that reuses the VectorType to support both fixed and scalable kinds, in a non-breaking manner.

EDIT: A separate scalable vector type and value are required to prevent mixing them with the fixed kind.