summaryrefslogtreecommitdiff
path: root/src/wasm.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm.h')
-rw-r--r--src/wasm.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/wasm.h b/src/wasm.h
index b3ae82bcf..3f60a67d2 100644
--- a/src/wasm.h
+++ b/src/wasm.h
@@ -65,6 +65,12 @@ struct Address {
}
};
+enum class MemoryOrder {
+ Unordered,
+ SeqCst,
+ AcqRel,
+};
+
enum class IRProfile { Normal, Poppy };
// Operators
@@ -1652,6 +1658,7 @@ public:
Expression* ref;
// Packed fields have a sign.
bool signed_ = false;
+ MemoryOrder order = MemoryOrder::Unordered;
void finalize();
};
@@ -1664,6 +1671,7 @@ public:
Index index;
Expression* ref;
Expression* value;
+ MemoryOrder order = MemoryOrder::Unordered;
void finalize();
};