summaryrefslogtreecommitdiff
path: root/src/passes/Print.cpp
diff options
context:
space:
mode:
authorHeejin Ahn <aheejin@gmail.com>2019-03-30 21:29:41 +0900
committerGitHub <noreply@github.com>2019-03-30 21:29:41 +0900
commit812bce93447756891e311334bff413e3b79ed2c7 (patch)
treec7384776132f2e46c5d2697897b55e593fa38f12 /src/passes/Print.cpp
parent3e2529386d221841137bd558fab71c91b5e00f1b (diff)
downloadbinaryen-812bce93447756891e311334bff413e3b79ed2c7.tar.gz
binaryen-812bce93447756891e311334bff413e3b79ed2c7.tar.bz2
binaryen-812bce93447756891e311334bff413e3b79ed2c7.zip
Rename atomic wait/notify instructions (#1972)
This renames the following: - `i32.wait` -> `i32.atomic.wait` - `i64.wait` -> `i64.atomic.wait` - `wake` -> `atomic.notify` to match the spec.
Diffstat (limited to 'src/passes/Print.cpp')
-rw-r--r--src/passes/Print.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/passes/Print.cpp b/src/passes/Print.cpp
index fd0bf17dc..6d7d512ff 100644
--- a/src/passes/Print.cpp
+++ b/src/passes/Print.cpp
@@ -228,13 +228,13 @@ struct PrintExpressionContents : public Visitor<PrintExpressionContents> {
}
void visitAtomicWait(AtomicWait* curr) {
prepareColor(o);
- o << printType(curr->expectedType) << ".wait";
+ o << printType(curr->expectedType) << ".atomic.wait";
if (curr->offset) {
o << " offset=" << curr->offset;
}
}
- void visitAtomicWake(AtomicWake* curr) {
- printMedium(o, "wake");
+ void visitAtomicNotify(AtomicNotify* curr) {
+ printMedium(o, "atomic.notify");
if (curr->offset) {
o << " offset=" << curr->offset;
}
@@ -904,12 +904,12 @@ struct PrintSExpression : public Visitor<PrintSExpression> {
printFullLine(curr->timeout);
decIndent();
}
- void visitAtomicWake(AtomicWake* curr) {
+ void visitAtomicNotify(AtomicNotify* curr) {
o << '(';
PrintExpressionContents(currFunction, o).visit(curr);
incIndent();
printFullLine(curr->ptr);
- printFullLine(curr->wakeCount);
+ printFullLine(curr->notifyCount);
decIndent();
}
void visitSIMDExtract(SIMDExtract* curr) {