[PATCH] D72995: [MLIR] LLVM Dialect: add llvm.cmpxchg and improve llvm.atomicrmw custom parser
Frank Laub via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Jan 19 03:01:03 PST 2020
flaub created this revision.
flaub added a reviewer: ftynse.
Herald added subscribers: llvm-commits, liufengdb, lucyrfox, mgester, arpith-jacob, antiagainst, shauheen, burmako, jpienaar, rriddle, mehdi_amini, jfb.
Herald added a reviewer: nicolasvasilache.
Herald added a project: LLVM.
Add a `llvm.cmpxchg` op as a counterpart to LLVM IR's `cmpxchg` instruction.
Note that the `weak`, `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 (especially for reductions that can't make use
of `atomicrmw`, e.g. `fmax`).
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D72995
Files:
mlir/include/mlir/Dialect/LLVMIR/LLVMOps.td
mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp
mlir/test/Dialect/LLVMIR/invalid.mlir
mlir/test/Dialect/LLVMIR/roundtrip.mlir
mlir/test/Target/llvmir.mlir
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D72995.238980.patch
Type: text/x-patch
Size: 21328 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200119/34f7f87f/attachment.bin>
More information about the llvm-commits
mailing list