summaryrefslogtreecommitdiff
path: root/src/wasm-builder.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm-builder.h')
-rw-r--r--src/wasm-builder.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/wasm-builder.h b/src/wasm-builder.h
index 1ae018e13..a2aa2d505 100644
--- a/src/wasm-builder.h
+++ b/src/wasm-builder.h
@@ -486,6 +486,16 @@ public:
ret->finalize();
return ret;
}
+ Prefetch*
+ makePrefetch(PrefetchOp op, Address offset, Address align, Expression* ptr) {
+ auto* ret = wasm.allocator.alloc<Prefetch>();
+ 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,