[PATCH] D72741: [MLIR] LLVM dialect: Add llvm.atomicrmw

Frank Laub via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 14 15:52:39 PST 2020


flaub created this revision.
flaub added reviewers: ftynse, jpienaar, nicolasvasilache.
Herald added subscribers: llvm-commits, liufengdb, aartbik, lucyrfox, mgester, arpith-jacob, antiagainst, shauheen, burmako, rriddle, mehdi_amini, jfb.
Herald added a project: LLVM.

This op is the counterpart to LLVM's atomicrmw instruction. Note that 
volatile and syncscope attributes are not yet supported.

This will be useful for upcoming parallel versions of `affine.for` and generally
for reduction-like semantics.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D72741

Files:
  mlir/include/mlir/Dialect/LLVMIR/LLVMOps.td
  mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp
  mlir/lib/Target/LLVMIR/ModuleTranslation.cpp
  mlir/test/Dialect/LLVMIR/roundtrip.mlir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D72741.238127.patch
Type: text/x-patch
Size: 11011 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200114/6db89daa/attachment.bin>


More information about the llvm-commits mailing list