summaryrefslogtreecommitdiff
path: root/src/ir/effects.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ir/effects.h')
-rw-r--r--src/ir/effects.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/ir/effects.h b/src/ir/effects.h
index e3997f5d2..c175bed85 100644
--- a/src/ir/effects.h
+++ b/src/ir/effects.h
@@ -294,7 +294,14 @@ struct EffectAnalyzer
if (!ignoreImplicitTraps) {
implicitTrap = true;
}
- };
+ }
+ void visitAtomicFence(AtomicFence* curr) {
+ // AtomicFence should not be reordered with any memory operations, so we set
+ // these to true.
+ readsMemory = true;
+ writesMemory = true;
+ isAtomic = true;
+ }
void visitSIMDExtract(SIMDExtract* curr) {}
void visitSIMDReplace(SIMDReplace* curr) {}
void visitSIMDShuffle(SIMDShuffle* curr) {}