]> granicus.if.org Git - llvm/commit
[AArch64] Print instruction before atomic semantic annotations
authorDavid Spickett <david.spickett@arm.com>
Thu, 21 Feb 2019 10:42:49 +0000 (10:42 +0000)
committerDavid Spickett <david.spickett@arm.com>
Thu, 21 Feb 2019 10:42:49 +0000 (10:42 +0000)
commit1ccbb08e460dd92ce7be16ea97459ae9032c8217
treebd79b25a7399839fb56a17c07ec4a5d7124afebd
parente58c1e6d7f0c52fac651daa43f115099bdfb2dfd
[AArch64] Print instruction before atomic semantic annotations

Commit r353303 added annotations when acquire semantics
were dropped from an instruction.

printAnnotation was called before printInstruction.
So if you didn't set a separate comment output stream
you got <comment><instr> instead of <instr><comment>
as expected.

To fix this move the new printAnnotation to after
the instruction is printed.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@354565 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AArch64/InstPrinter/AArch64InstPrinter.cpp