[mlir][llvm] Add atomic support to the StoreOp.
authorTobias Gysi <tobias.gysi@nextsilicon.com>
Mon, 20 Feb 2023 07:46:33 +0000 (08:46 +0100)
committerTobias Gysi <tobias.gysi@nextsilicon.com>
Mon, 20 Feb 2023 08:04:27 +0000 (09:04 +0100)
commit9185896a36457f8e6858c9a4c789975fc067228a
treed695e5a048f390f83ae986281e0ff0d7bd479207
parenta28b252d852c31fb7228e095a213347e6926bb0f
[mlir][llvm] Add atomic support to the StoreOp.

This revision adds atomic support to the StoreOp. It chooses
to print the atomic keywords together with the syncscope and
ordering arguments. The revision also implements verifiers to
ensure the constraints that apply to atomic store operations
are checked.

Depends on D144112

Reviewed By: Dinistro

Differential Revision: https://reviews.llvm.org/D144200
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/Import/instructions.ll
mlir/test/Target/LLVMIR/llvmir.mlir