aboutsummaryrefslogtreecommitdiff
path: root/src/arch/wasm/CodeGen.zig
diff options
context:
space:
mode:
authorDavid Rubin <87927264+Rexicon226@users.noreply.github.com>2024-05-22 08:51:16 -0700
committerGitHub <noreply@github.com>2024-05-22 10:51:16 -0500
commita7de02e05216db9a04e438703ddf1b6b12f3fbef (patch)
treebf70046bbcf24c00bf201c0638f2f90543a62df5 /src/arch/wasm/CodeGen.zig
parented75f62568f64c0d3859aab35aaf5289c3f07026 (diff)
downloadzig-a7de02e05216db9a04e438703ddf1b6b12f3fbef.tar.gz
zig-a7de02e05216db9a04e438703ddf1b6b12f3fbef.zip
implement `@expect` builtin (#19658)
* implement `@expect` * add docs * add a second arg for expected bool * fix typo * move `expect` to use BinOp * update to newer langref format
Diffstat (limited to 'src/arch/wasm/CodeGen.zig')
-rw-r--r--src/arch/wasm/CodeGen.zig2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/arch/wasm/CodeGen.zig b/src/arch/wasm/CodeGen.zig
index fe94c06136..a2d97326fc 100644
--- a/src/arch/wasm/CodeGen.zig
+++ b/src/arch/wasm/CodeGen.zig
@@ -2016,6 +2016,8 @@ fn genInst(func: *CodeGen, inst: Air.Inst.Index) InnerError!void {
.c_va_start,
=> |tag| return func.fail("TODO: Implement wasm inst: {s}", .{@tagName(tag)}),
+ .expect => unreachable,
+
.atomic_load => func.airAtomicLoad(inst),
.atomic_store_unordered,
.atomic_store_monotonic,