diff options
author | Derek Schuff <dschuff@chromium.org> | 2017-06-28 12:05:27 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-28 12:05:27 -0700 |
commit | e2c08d42ab0ffc05d980ae2d34fee0e77b201134 (patch) | |
tree | 4b70d7469df7fdd4ee70abf42534a2f685da4704 /src/s2wasm.h | |
parent | 14bcc443282146cb85ef2798c36fcb2fe6fa74fa (diff) | |
download | binaryen-e2c08d42ab0ffc05d980ae2d34fee0e77b201134.tar.gz binaryen-e2c08d42ab0ffc05d980ae2d34fee0e77b201134.tar.bz2 binaryen-e2c08d42ab0ffc05d980ae2d34fee0e77b201134.zip |
Add atomic loads and stores (#1077)
Add IR, wast and binary support for atomic loads and stores.
Currently all IR generated by means other than parsing wast and binary files always generates non-atomic accesses, and optimizations have not yet been made aware of atomics, so they are certainly not ready to be used yet.
Diffstat (limited to 'src/s2wasm.h')
-rw-r--r-- | src/s2wasm.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/s2wasm.h b/src/s2wasm.h index efa4ad601..0fc0201cd 100644 --- a/src/s2wasm.h +++ b/src/s2wasm.h @@ -920,6 +920,7 @@ class S2WasmBuilder { auto makeLoad = [&](WasmType type) { skipComma(); auto curr = allocator->alloc<Load>(); + curr->isAtomic = false; curr->type = type; int32_t bytes = getInt() / CHAR_BIT; curr->bytes = bytes > 0 ? bytes : getWasmTypeSize(type); @@ -939,6 +940,7 @@ class S2WasmBuilder { }; auto makeStore = [&](WasmType type) { auto curr = allocator->alloc<Store>(); + curr->isAtomic = false; curr->valueType = type; s += strlen("store"); if(!isspace(*s)) { |