# Add builtin for llvm.wasm.memory.grow.i32 intrinsic · gitcafe/zig

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

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

Visibility: public

Requested revision: 601e831f1d15ba5c8f89fbab265a72bfabb6af96

Requested commit: 601e831f1d15ba5c8f89fbab265a72bfabb6af96

Commit: 601e831f1d15ba5c8f89fbab265a72bfabb6af96

Tree: 2883351a9ebaa4759b239bff24090133e5f8961c

Author: Jakub Konka

Committer: Andrew Kelley

## Message

````
Add builtin for llvm.wasm.memory.grow.i32 intrinsic

This will allow the developer to request additional memory pages
from the runtime to be allocated for the Wasm app. Typical usage:

```zig
var wasm_pages = @wasmMemorySize();
@wasmMemoryGrow(1);
@import("std").debug.assert((wasm_pages + 1) == @wasmMemorySize());
```

````

## Parents

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

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