stdarch icon indicating copy to clipboard operation
stdarch copied to clipboard

Is there any way to call a llvm intrinisc API which contains type like llvm_v4i1_ty?

Open kangshan1157 opened this issue 4 years ago • 4 comments

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?

kangshan1157 avatar Jan 30 '21 12:01 kangshan1157

It isn't possible without special support in the compiler.

Amanieu avatar Jan 30 '21 13:01 Amanieu

Which LLVM intrinsics do you want to use?

bjorn3 avatar Jan 30 '21 13:01 bjorn3

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]>;

kangshan1157 avatar Jan 30 '21 13:01 kangshan1157

All avx512 vp2intersect intrinsics are falling into this group.

vertexclique avatar Feb 10 '21 15:02 vertexclique