Memref.atomic_rmw documentation clarification

Hi All,

I am not sure what the process is for clarification and improvement of MLIR and its dialects. 

The document ('memref' Dialect - MLIR) says

The result represents the latest value that was stored.

I assume this means that the operation returns the updated value?

Thanks
Vinod

It reads the value currently stored in the memref, stores the new value provided, and returns the value that was initially read.

Thanks @ftynse !

I suggest that we update the spec to reflect that. The current spec seems to be ambiguus

:slight_smile:

Thanks
Vinod

Do you mind submitting a patch :slight_smile: ?