Handle use of SIMD vector globals and locals

This commit is contained in:
Andrew Brown
2019-09-06 11:43:11 -07:00
parent 7e6913e362
commit 6cbc6e8bfb
3 changed files with 10 additions and 1 deletions

View File

@@ -4,6 +4,7 @@ use crate::wasm_unsupported;
use core::u32;
use cranelift_codegen::entity::entity_impl;
use cranelift_codegen::ir;
use cranelift_codegen::ir::immediates::Uimm128;
#[cfg(feature = "enable-serde")]
use serde::{Deserialize, Serialize};
use wasmparser;
@@ -77,7 +78,7 @@ pub enum GlobalInit {
/// An `f64.const`.
F64Const(u64),
/// A `vconst`.
V128Const([u8; 16]),
V128Const(Uimm128),
/// A `get_global` of another global.
GetGlobal(GlobalIndex),
///< The global is imported from, and thus initialized by, a different module.