diff options
Diffstat (limited to 'src/wasm.h')
-rw-r--r-- | src/wasm.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/wasm.h b/src/wasm.h index 12aacd2ed..29d2e9b5d 100644 --- a/src/wasm.h +++ b/src/wasm.h @@ -530,6 +530,11 @@ enum SIMDTernaryOp { SignSelectVec64x2 }; +enum PrefetchOp { + PrefetchTemporal, + PrefetchNontemporal, +}; + // // Expressions // @@ -577,6 +582,7 @@ public: MemorySizeId, MemoryGrowId, NopId, + PrefetchId, UnreachableId, AtomicRMWId, AtomicCmpxchgId, @@ -1037,6 +1043,18 @@ public: void finalize(); }; +class Prefetch : public SpecificExpression<Expression::PrefetchId> { +public: + Prefetch() = default; + Prefetch(MixedArena& allocator) : Prefetch() {} + + PrefetchOp op; + Address offset; + Address align; + Expression* ptr; + void finalize(); +}; + class MemoryInit : public SpecificExpression<Expression::MemoryInitId> { public: MemoryInit() = default; |