[all-commits] [llvm/llvm-project] 3a6f02: [mlir] Add subbyte emulation support for `memref.s...

Max191 via All-commits all-commits at lists.llvm.org
Tue Nov 28 11:51:44 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3a6f02a6581b49b269710eea944dc114166403ed
      https://github.com/llvm/llvm-project/commit/3a6f02a6581b49b269710eea944dc114166403ed
  Author: Max191 <44243577+Max191 at users.noreply.github.com>
  Date:   2023-11-28 (Tue, 28 Nov 2023)

  Changed paths:
    M mlir/lib/Dialect/MemRef/Transforms/EmulateNarrowType.cpp
    M mlir/test/Dialect/MemRef/emulate-narrow-type.mlir

  Log Message:
  -----------
  [mlir] Add subbyte emulation support for `memref.store`. (#73174)

This adds a conversion for narrow type emulation of memref.store ops.
The conversion replaces the memref.store with two memref.atomic_rmw ops.
Atomics are used to prevent race conditions on same-byte accesses, in
the event that two threads are storing into the same byte.

Fixes https://github.com/openxla/iree/issues/15370




More information about the All-commits mailing list