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

[Clang][LoongArch] Support builtin functions for LSX and LASX #70404

Closed
wants to merge 5 commits into from

Conversation

yjijd
Copy link
Contributor

@yjijd yjijd commented Oct 27, 2023

These commits support builtin functions for LSX and LASX.
They do the following work:

Support compiler options -mlsx and -mlasx
Add ABI implementation of passing vectors
Define the builtin functions for LSX
Define the builtin functions for LASX

This patch adds compiler options -mlsx/-mlasx which enables the
instruction sets of LSX and LASX, and sets related predefined macros
acording to the options.
This patch does the following work:
- Define the builtin functions for LSX
- Add the header file lsxintrin.h
- Add the immediate number range checking for LSX builtins
This patch does the following work:
- Define the builtin functions for LASX
- Add the header files lasxintrin.h
@llvmbot llvmbot added clang Clang issues not falling into any other category backend:X86 clang:driver 'clang' and 'clang++' user-facing binaries. Not 'clang-cl' clang:frontend Language frontend issues, e.g. anything involving "Sema" clang:headers Headers provided by Clang, e.g. for intrinsics clang:codegen backend:loongarch labels Oct 27, 2023
@yjijd yjijd closed this Oct 31, 2023
@yjijd yjijd deleted the justTest branch October 31, 2023 03:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend:loongarch backend:X86 clang:codegen clang:driver 'clang' and 'clang++' user-facing binaries. Not 'clang-cl' clang:frontend Language frontend issues, e.g. anything involving "Sema" clang:headers Headers provided by Clang, e.g. for intrinsics clang Clang issues not falling into any other category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants