Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kangshan1157 opened this issue Jan 30, 2021 · 4 comments

Comments

@kangshan1157
Copy link
Contributor

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?

@Amanieu
Copy link
Member

Amanieu commented Jan 30, 2021

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

@bjorn3
Copy link
Member

bjorn3 commented Jan 30, 2021

Which LLVM intrinsics do you want to use?

@kangshan1157
Copy link
Contributor Author

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

@vertexclique
Copy link
Member

All avx512 vp2intersect intrinsics are falling into this group.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants