diff options
Diffstat (limited to 'src/wasm-builder.h')
-rw-r--r-- | src/wasm-builder.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/wasm-builder.h b/src/wasm-builder.h index 97877a0a1..77e2692f6 100644 --- a/src/wasm-builder.h +++ b/src/wasm-builder.h @@ -434,6 +434,22 @@ public: ret->finalize(); return ret; } + SIMDLoadStoreLane* makeSIMDLoadStoreLane(SIMDLoadStoreLaneOp op, + Address offset, + Address align, + uint8_t index, + Expression* ptr, + Expression* vec) { + auto* ret = wasm.allocator.alloc<SIMDLoadStoreLane>(); + ret->op = op; + ret->offset = offset; + ret->align = align; + ret->index = index; + ret->ptr = ptr; + ret->vec = vec; + ret->finalize(); + return ret; + } MemoryInit* makeMemoryInit(uint32_t segment, Expression* dest, Expression* offset, |