diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2022-03-03 18:31:55 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-03-03 18:31:55 -0700 |
| commit | e532b0c0b5d55d212d885c779ab9f2fa7443e56a (patch) | |
| tree | 0a1e9b277c745518f2b64d8913fe5e065fe9cc1b /test/behavior/pointers.zig | |
| parent | 7fd32de0180c29dc4e3da72e9347f6f5ce167a38 (diff) | |
| download | zig-e532b0c0b5d55d212d885c779ab9f2fa7443e56a.tar.gz zig-e532b0c0b5d55d212d885c779ab9f2fa7443e56a.zip | |
stage2: cleanups to wasm memory intrinsics
* AIR: use pl_op instead of ty_pl for wasm_memory_size. No need to
store the type because the type is always `u32`.
* AstGen: use coerced_ty for `@wasmMemorySize` and `@wasmMemoryGrow`
and do the coercions in Sema.
* Sema: use more accurate source locations for errors.
* Provide more information in the compiler error message.
* Codegen: use liveness data to avoid lowering unused
`@wasmMemorySize`.
* LLVM backend: add implementation
- I wasn't able to test it because we are hitting a linker error for
`-target wasm32-wasi -fLLVM`.
* C backend: use `zig_unimplemented()` instead of silently doing wrong
behavior for these builtins.
* behavior tests: branch only on stage2_arch for inclusion of the
wasm.zig file. We would change it to `builtin.cpu.arch` but that is
causing a compiler crash on some backends.
Diffstat (limited to 'test/behavior/pointers.zig')
0 files changed, 0 insertions, 0 deletions
