summaryrefslogtreecommitdiff
path: root/src/wasm.h
diff options
context:
space:
mode:
authorThomas Lively <7121787+tlively@users.noreply.github.com>2020-10-26 10:31:05 -0700
committerGitHub <noreply@github.com>2020-10-26 10:31:05 -0700
commit019b0ef15e966ecafa6cdfa357b00de09c332633 (patch)
treee9fd5a0d8b130168280683f71fecbc92bea4a9d7 /src/wasm.h
parentd0032c299695c765e757de5f9482a610bf687d69 (diff)
downloadbinaryen-019b0ef15e966ecafa6cdfa357b00de09c332633.tar.gz
binaryen-019b0ef15e966ecafa6cdfa357b00de09c332633.tar.bz2
binaryen-019b0ef15e966ecafa6cdfa357b00de09c332633.zip
[NFC] `using namespace Abstract` to make matchers more compact (#3284)
This change makes matchers in OptimizeInstructions more compact and readable by removing the explicit `Abstract::` namespace from individual operations. In some cases, this makes multi-line matcher expressions fit on a single line. This change is only possible because it also adds an explicit "RMW" prefix to each element of the `AtomicRMWOp` enumeration. Without that, their names conflicted with the names of Abstract ops.
Diffstat (limited to 'src/wasm.h')
-rw-r--r--src/wasm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wasm.h b/src/wasm.h
index e2b97204b..048b6c584 100644
--- a/src/wasm.h
+++ b/src/wasm.h
@@ -432,7 +432,7 @@ enum BinaryOp {
InvalidBinary
};
-enum AtomicRMWOp { Add, Sub, And, Or, Xor, Xchg };
+enum AtomicRMWOp { RMWAdd, RMWSub, RMWAnd, RMWOr, RMWXor, RMWXchg };
enum SIMDExtractOp {
ExtractLaneSVecI8x16,