MIR Serialization: Serialize defined registers that require 'def' register flag.
authorAlex Lorenz <arphaman@gmail.com>
Wed, 19 Aug 2015 18:55:47 +0000 (18:55 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Wed, 19 Aug 2015 18:55:47 +0000 (18:55 +0000)
commitbaf422e9ece686d0c1ad95b35e1e8d963802789f
treedb95ddfe88ad1c550d750d8f31dc37688ca07da9
parent71a40e6fef2cb4357a6bd5caabe901dacedce088
MIR Serialization: Serialize defined registers that require 'def' register flag.

The defined registers are already serialized - they are represented by placing
them before the '=' in a machine instruction. However, certain instructions like
INLINEASM can have defined register operands after the '=', so this commit
introduces the 'def' register flag for such operands.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@245480 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/MIRParser/MILexer.cpp
lib/CodeGen/MIRParser/MILexer.h
lib/CodeGen/MIRParser/MIParser.cpp
lib/CodeGen/MIRPrinter.cpp
test/CodeGen/MIR/X86/inline-asm-registers.mir [new file with mode: 0644]