[Mlir-commits] [mlir] [mlir][LLVM] Model side effects of volatile and atomic load-store (PR #65730)
Tobias Gysi
llvmlistbot at llvm.org
Fri Sep 8 04:01:22 PDT 2023
================
@@ -932,6 +943,17 @@ static void printLoadType(OpAsmPrinter &printer, Operation *op, Type type,
// StoreOp
//===----------------------------------------------------------------------===//
+void StoreOp::getEffects(
+ SmallVectorImpl<SideEffects::EffectInstance<MemoryEffects::Effect>>
+ &effects) {
+ effects.emplace_back(MemoryEffects::Write::get(), getAddr());
+ if (getVolatile_() || (getOrdering() != AtomicOrdering::not_atomic &&
----------------
gysit wrote:
Here the same comment would make sense as well.
https://github.com/llvm/llvm-project/pull/65730
More information about the Mlir-commits
mailing list