summaryrefslogtreecommitdiff
path: root/src/opcode.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/opcode.h')
-rw-r--r--src/opcode.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/opcode.h b/src/opcode.h
index 86838db7..61d7a3ad 100644
--- a/src/opcode.h
+++ b/src/opcode.h
@@ -61,6 +61,9 @@ struct Opcode {
Type GetParamType3() const { return GetInfo().param3_type; }
Address GetMemorySize() const { return GetInfo().memory_size; }
+ // Get the lane count of an extract/replace simd op.
+ uint32_t GetSimdLaneCount() const;
+
// Return 1 if |alignment| matches the alignment of |opcode|, or if
// |alignment| is WABT_USE_NATURAL_ALIGNMENT.
bool IsNaturallyAligned(Address alignment) const;