# cbe: Implement wasm builtins · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/7fd32de0180c29dc4e3da72e9347f6f5ce167a38)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 7fd32de0180c29dc4e3da72e9347f6f5ce167a38

Requested commit: 7fd32de0180c29dc4e3da72e9347f6f5ce167a38

Commit: 7fd32de0180c29dc4e3da72e9347f6f5ce167a38

Tree: 6c72da6895e5da86988f6ed606eb98eee85c39ab

Author: Luuk de Gram

Committer: Andrew Kelley

## Message

```
cbe: Implement wasm builtins

This implements the wasm builtins by lowering to builtins that are supported by c-compilers.
In this case: Clang.

This also simplifies the `AIR` instruction as it now uses the payload field of `ty_pl` and `pl_op`
directly to store the index argument rather than storing it inside Extra. This saves us 4 bytes
per builtin call.

```

## Parents

- [21f0503c0137b7bb59edd87e17e1649152d342ba](https://git.cafe/gitcafe/zig/commit/21f0503c0137b7bb59edd87e17e1649152d342ba?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/7fd32de0180c29dc4e3da72e9347f6f5ce167a38?format=markdown)
