diff options
Diffstat (limited to 'src/wasm-builder.h')
-rw-r--r-- | src/wasm-builder.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/wasm-builder.h b/src/wasm-builder.h index c2f1e41b6..d47ec413f 100644 --- a/src/wasm-builder.h +++ b/src/wasm-builder.h @@ -420,6 +420,16 @@ public: ret->finalize(); return ret; } + SIMDLoad* + makeSIMDLoad(SIMDLoadOp op, Address offset, Address align, Expression* ptr) { + auto* ret = allocator.alloc<SIMDLoad>(); + ret->op = op; + ret->offset = offset; + ret->align = align; + ret->ptr = ptr; + ret->finalize(); + return ret; + } MemoryInit* makeMemoryInit(uint32_t segment, Expression* dest, Expression* offset, |