[all-commits] [llvm/llvm-project] fe210a: [MLIR] Add std.atomic_rmw op

Frank Laub via All-commits all-commits at lists.llvm.org
Mon Feb 24 16:54:30 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: fe210a1ff2e90093e210bcbcc1184308903c7bdb
      https://github.com/llvm/llvm-project/commit/fe210a1ff2e90093e210bcbcc1184308903c7bdb
  Author: Frank Laub <frank.laub at intel.com>
  Date:   2020-02-24 (Mon, 24 Feb 2020)

  Changed paths:
    M mlir/include/mlir/Dialect/StandardOps/IR/Ops.td
    M mlir/lib/Conversion/StandardToLLVM/ConvertStandardToLLVM.cpp
    M mlir/lib/Dialect/StandardOps/IR/Ops.cpp
    M mlir/test/Conversion/StandardToLLVM/convert-to-llvmir.mlir
    M mlir/test/IR/core-ops.mlir
    M mlir/test/IR/invalid-ops.mlir

  Log Message:
  -----------
  [MLIR] Add std.atomic_rmw op

Summary:
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

Differential Revision: https://reviews.llvm.org/D74401




More information about the All-commits mailing list