[PATCH] D74401: [MLIR] Add std.atomic_rmw op
Frank Laub via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 11 06:10:33 PST 2020
flaub created this revision.
flaub added reviewers: ftynse, mehdi_amini, rriddle, jbruestle, earhart.
Herald added subscribers: llvm-commits, Joonsoo, liufengdb, lucyrfox, mgester, arpith-jacob, nicolasvasilache, antiagainst, shauheen, burmako, jpienaar, jfb.
Herald added a project: LLVM.
flaub updated this revision to Diff 243841.
flaub added a comment.
- Remove stdx.
The RFC for this op is here: https://llvm.discourse.group/t/rfc-add-std-atomic-rmw-op/489
The std.atmomic_rmw op provides a way to support read-modify-write
sequences with data race freedom. It is intended to be used in the lowering
of an upcoming affine.atomic_rmw op which can be used for reductions.
A lowering to LLVM is provided with 2 paths:
- Simple patterns: llvm.atomicrmw
- Everything else: llvm.cmpxchg
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D74401
Files:
mlir/include/mlir/Dialect/StandardOps/Ops.td
mlir/lib/Conversion/StandardToLLVM/ConvertStandardToLLVM.cpp
mlir/lib/Dialect/StandardOps/Ops.cpp
mlir/test/Conversion/StandardToLLVM/convert-to-llvmir.mlir
mlir/test/IR/core-ops.mlir
mlir/test/IR/invalid-ops.mlir
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D74401.243841.patch
Type: text/x-patch
Size: 24130 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200211/8a94f74d/attachment.bin>
More information about the llvm-commits
mailing list