diff options
author | Derek Schuff <dschuff@chromium.org> | 2017-07-21 08:46:23 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-21 08:46:23 -0700 |
commit | ab8dbae1d1a27e4de24fd9ee09d45785a414922d (patch) | |
tree | ac337117d973464a16d597fc7a5c29550a93a489 /src/passes/InstrumentMemory.cpp | |
parent | da680fdbcb7eaad1c692369c7c826fc02b00c877 (diff) | |
download | binaryen-ab8dbae1d1a27e4de24fd9ee09d45785a414922d.tar.gz binaryen-ab8dbae1d1a27e4de24fd9ee09d45785a414922d.tar.bz2 binaryen-ab8dbae1d1a27e4de24fd9ee09d45785a414922d.zip |
Optimizer support for atomic instructions (#1094)
* Teach EffectAnalyzer not to reorder atomics wrt other memory operations.
* Teach EffectAnalyzer not to reorder host operations with memory operations
* Teach various passes about the operands of AtomicRMW and AtomicCmpxchg
* Factor out some functions in DeadCodeElimination and MergeBlocks
Diffstat (limited to 'src/passes/InstrumentMemory.cpp')
-rw-r--r-- | src/passes/InstrumentMemory.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/passes/InstrumentMemory.cpp b/src/passes/InstrumentMemory.cpp index 536031064..d9a5a4316 100644 --- a/src/passes/InstrumentMemory.cpp +++ b/src/passes/InstrumentMemory.cpp @@ -66,6 +66,7 @@ namespace wasm { Name load("load"); Name store("store"); +// TODO: Add support for atomicRMW/cmpxchg struct InstrumentMemory : public WalkerPass<PostWalker<InstrumentMemory>> { void visitLoad(Load* curr) { |