[mir] Print/Parse both MOLoad and MOStore when they occur together.
authorDaniel Sanders <daniel_l_sanders@apple.com>
Tue, 28 Nov 2017 18:57:02 +0000 (18:57 +0000)
committerDaniel Sanders <daniel_l_sanders@apple.com>
Tue, 28 Nov 2017 18:57:02 +0000 (18:57 +0000)
commit17d277b7346b6cfcd236e5c12a34f25cf7c72a73
tree6d6418ce9193cad0dc6b4f8b5d2223a9bde30587
parent50e6e545872366dc68e005320564a67a68ecdc33
[mir] Print/Parse both MOLoad and MOStore when they occur together.

Summary:
They're not always mutually exclusive. read-modify-write atomics are both
at the same time. One example of this is the SWP instructions on AArch64.
Another example is GlobalISel's G_ATOMICRMW_* generic instructions which
will be added in a later patch.

Reviewers: arphaman, aemerson

Reviewed By: aemerson

Subscribers: aemerson, javed.absar, kristof.beyls, llvm-commits

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

llvm-svn: 319202
llvm/lib/CodeGen/MIRParser/MIParser.cpp
llvm/lib/CodeGen/MIRPrinter.cpp
llvm/test/CodeGen/MIR/AArch64/swp.mir [new file with mode: 0644]