HomePhabricator

[MLIR] Add std.atomic_rmw op

Authored by flaub on Feb 24 2020, 4:49 PM.

Description

[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

Details

Committed
flaubFeb 24 2020, 4:54 PM
Differential Revision
D74401: [MLIR] Add std.atomic_rmw op
Parents
rG4e45ef4d77b7: Prefer PATH_MAX to MAXPATHLEN
Branches
Unknown
Tags
Unknown