[llvm] r294993 - GlobalISel: represent atomic loads & stores via the MachineMemOperand.

Ahmed Bougacha via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 16 09:56:49 PST 2017


Asserting that a generic memory instruction has one MMO seems reasonable to me.

But beyond making sure we don't drop the MMO, the fact that it's on
the side makes it easier to introduce bugs that ignore it.  But I
suppose that's not that different from isVolatile and whatnot in both
IR and SDAG.
-Ahmed


On Wed, Feb 15, 2017 at 2:41 PM, Tim Northover <tnorthover at apple.com> wrote:
>> Do we have a way to "stomp on anyone that tries" automatically?
>
> Well, dropping a new "MachineMemOperandOperand" would be detected automatically when the verifier checks the instruction has the correct number of operands. Other than that, only code review; but I think it's pretty unlikely someone will break it accidentally.
>
> Tim.


More information about the llvm-commits mailing list