Skip to content

[SYCL-MLIR] Improve code generation for the rest of binary operators #7487

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

Merged
merged 1 commit into from
Nov 24, 2022

Conversation

victor-eds
Copy link
Contributor

@victor-eds victor-eds commented Nov 22, 2022

9ac759f improved code generation for addition and subtraction. This commit addresses the rest of binary arithmetic operators (mul, div, rem, shl, shr, and, or, xor):

  • Enable code generation for mul and div operators and vector operands;
  • Mask shl and shr operands in OpenCL
  • Always generate signed/unsigned operations for vector operands.

Signed-off-by: Victor Perez victor.perez@codeplay.com

@victor-eds victor-eds added the sycl-mlir Pull requests or issues for sycl-mlir branch label Nov 22, 2022
@victor-eds victor-eds requested a review from etiotto as a code owner November 22, 2022 13:17
@victor-eds victor-eds self-assigned this Nov 22, 2022
@victor-eds
Copy link
Contributor Author

Almost all of the new lines are tests.

@victor-eds victor-eds marked this pull request as draft November 22, 2022 13:23
@victor-eds victor-eds marked this pull request as ready for review November 22, 2022 13:27
9ac759f improved code generation for addition and
subtraction. This commit addresses the rest of binary arithmetic
operators (mul, div, rem, shl, shr, and, or, xor):

- Enable code generatio for mul and div operators and vector operands;
- Mask shl and shr operands in OpenCL
- Always generate signed/unsigned operations for vector operands.

Signed-off-by: Victor Perez <victor.perez@codeplay.com>
@victor-eds victor-eds merged commit 67c8570 into intel:sycl-mlir Nov 24, 2022
@victor-eds victor-eds deleted the visit-rest-binarith branch November 24, 2022 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sycl-mlir Pull requests or issues for sycl-mlir branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants