stdarch
stdarch copied to clipboard
Is there any way to call a llvm intrinisc API which contains type like llvm_v4i1_ty?
I'm studying rust and would like to contribute the intrinsic APIs implementation. During the investigation, I find some llvm intrinsic APIs may contain types like llvm_v4i1_ty (4 bits), llvm_v2i1_ty (2 bits) for which I fail to find the corresponding types in Rust. What I learned Rust's type has 8 bits at least. I'm a beginner of Rust and I have no idea how to solve such limitation. Does anyone have some suggestions?
It isn't possible without special support in the compiler.
Which LLVM intrinsics do you want to use?
I want to use this one. def int_x86_avx512bf16_mask_cvtneps2bf16_128: Intrinsic<[llvm_v8i16_ty], [llvm_v4f32_ty, llvm_v8i16_ty, llvm_v4i1_ty], [IntrNoMem]>;
All avx512 vp2intersect intrinsics are falling into this group.