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

LLVM: field addition with saturated fields #456

Merged
merged 6 commits into from
Aug 14, 2024
Merged

Conversation

mratsim
Copy link
Owner

@mratsim mratsim commented Aug 14, 2024

This PR merges several experiments to implement modular addition in pure LLVM IR so that instead of writing an assembly backend for each target we can generate multiplatform code from LLVM IR, especially for ARM and AMDGPU as they support addition-with-carry and also SIMD, without doing vectorization myself.

That was to try to address:

Unfortunately, compilers are still inefficient at translating modular addition into optimal code.
See #357:

Description of experiments:

@mratsim mratsim merged commit 569e029 into master Aug 14, 2024
23 of 24 checks passed
@mratsim mratsim deleted the llvm-sat-codegen branch August 14, 2024 09:50
@mratsim mratsim mentioned this pull request Aug 27, 2024
mratsim added a commit that referenced this pull request Aug 27, 2024
* nvidia: update hello world following changes in #456

* update Nvidia backend to use the new LLVM infra

* update Nvidia multiplication
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