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

C API header xcvsimd and type fixes #99

Merged
merged 2 commits into from
Jan 7, 2024

Conversation

PaoloS02
Copy link
Contributor

@PaoloS02 PaoloS02 commented Dec 15, 2023

This patch adds the C API header file for the xcvsimd Clang builtins.
It adds the CodeGen test that checks that the wrapper functions defined in the header turn into the right LLVM instrinsic when called.

The patch also adds a fix for the types of the operands of some simd builtins that were wrongly declared as signed instead of unsigned or as not constant arguments.
The CodeGen tests are updated accordingly.

Finally the patch adds the cmake support for the header file. This needs to follow the analogous patch for the xcvbitmanip builtins as that one includes the basic cmake support to add all the headers.

This patch fixes the types of simd CORE-V Clang builtins as per spec.
The patch also adds the `I` qualifier to the immediate argument of
extract[u]_[h,b] intrinsics so that clang errors when a variable is
passed instead of letting the compiler crash later.

The patch also updates the clang CoreGen test accordingly.
This commit adds the C API header to serve as an interface for
the intrinsic functions provided with the CORE-V xcvsimd
extension.

The commit includes the addition of the header itself and a clang
CodeGen test that checks the integrity of the call to the wrapper
functions designed in the C API CORE-V simd header.
@PaoloS02 PaoloS02 merged commit d76498e into openhwgroup:development Jan 7, 2024
2 of 3 checks passed
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

Successfully merging this pull request may close these issues.

1 participant