Skip to content

Commit

Permalink
docs: ALU: drop to keyword from polyfill names
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
wzmuda committed Oct 21, 2024
1 parent 10081aa commit 5e26e61
Showing 1 changed file with 191 additions and 191 deletions.
Loading

0 comments on commit 5e26e61

Please sign in to comment.