MIR Serialization: Use the global value syntax for global value memory operands.
authorAlex Lorenz <arphaman@gmail.com>
Thu, 20 Aug 2015 00:20:03 +0000 (00:20 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Thu, 20 Aug 2015 00:20:03 +0000 (00:20 +0000)
commite2e6dea9f2043ad2175e499f97a31adea6d3bddd
tree46ae4f230fe6d659ffe40e24ab1d46f18cdd9a27
parent77676424fd391c318bbc5ce53ec8f9feb425e88a
MIR Serialization: Use the global value syntax for global value memory operands.

This commit modifies the serialization syntax so that the global IR values in
machine memory operands use the global value '@<name>' syntax instead of the
current '%ir.<name>' syntax.

The unnamed global IR values are handled by this commit as well, as the
existing global value parsing method can parse the unnamed globals already.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@245527 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/MIRParser/MIParser.cpp
lib/CodeGen/MIRPrinter.cpp
test/CodeGen/MIR/AArch64/stack-object-local-offset.mir
test/CodeGen/MIR/X86/frame-info-stack-references.mir
test/CodeGen/MIR/X86/memory-operands.mir