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

docs: ALU: drop to keyword from polyfill names #75

Merged
merged 1 commit into from
Oct 21, 2024
Merged

Conversation

wzmuda
Copy link
Contributor

@wzmuda wzmuda commented Oct 21, 2024

Summary

Most of the LLVM IR instructions come in the form of just an opcode followed by operands, but some introduce an extra to keyword, e.g. zext is called as follows:

%X = zext i32 257 to i64

Details

As discussed in the compiler skeleton PR, this naming duality make the instructions-to-polyfills mapping more complex without adding any benefits. Remove the to keyword from polyfill names. Affected instructions: trunc, zext, sext, ptrtoint, inttoptr, bitcast.

Checklist

  • [ ] Code is formatted by Rustfmt.
  • Documentation has been updated if necessary.

Most of the LLVM IR instructions come in the form of just an opcode
followed by operands, but some introduce an extra `to` keyword, e.g.
`zext` is called as follows:

```llvm
%X = zext i32 257 to i64
```

As discussed in the compiler skeleton PR[1], this naming duality make
the instructions-to-polyfills mapping more complex without adding any
benefits. Remove the `to` keyword from polyfill names. Affected
instructions: trunc, zext, sext, ptrtoint, inttoptr, bitcast.

--

[1] #74 (comment)

Signed-off-by: Wojciech Zmuda <zmuda.w@gmail.com>
@wzmuda wzmuda requested a review from a team as a code owner October 21, 2024 18:01
@wzmuda wzmuda merged commit 5e26e61 into main Oct 21, 2024
4 checks passed
@wzmuda wzmuda deleted the wz/alu-design-drop-to branch October 21, 2024 18:38
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.

2 participants