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

Add passes to convert arith.remui to use the arith_ext ops #710

Open
3 tasks
inbelic opened this issue May 31, 2024 · 0 comments · May be fixed by #712
Open
3 tasks

Add passes to convert arith.remui to use the arith_ext ops #710

inbelic opened this issue May 31, 2024 · 0 comments · May be fixed by #712
Assignees
Labels
newcomer project Project ideas for new contributors

Comments

@inbelic
Copy link
Contributor

inbelic commented May 31, 2024

Cf #635.

Add the following passes to arith_ext:

  • Create a pass that converts arith.muli + arith.remui into arith.muli + artih_ext.barret_reduce + arith_ext.subifge when the operands are in the range [0, cmod).
  • Create a pass that converts arith.addi + arith.remui into arith.addi + arith_ext.subifge when the operands are in the range [0, cmod).
  • Create a pass that converts arith.subi + arith.remui into arith.subi + arith.addi cmod + arith.subifge when the operands are in the range [0, cmod).
@inbelic inbelic linked a pull request May 31, 2024 that will close this issue
@j2kun j2kun added good first issue Good for newcomers newcomer project Project ideas for new contributors and removed good first issue Good for newcomers labels Jun 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
newcomer project Project ideas for new contributors
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants