MIR Serialization: Serialize the implicit register flag.
authorAlex Lorenz <arphaman@gmail.com>
Mon, 6 Jul 2015 23:07:26 +0000 (23:07 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Mon, 6 Jul 2015 23:07:26 +0000 (23:07 +0000)
commit4ec0f60807eed1e1269c8ae54658dcc12eff9100
tree8cc149cacdc95c9507f48d1e135676c4ebbdd705
parentddf4c989eebd071515d01f31e2bfff2739982866
MIR Serialization: Serialize the implicit register flag.

This commit serializes the implicit flag for the register machine operands. It
introduces two new keywords into the machine instruction syntax: 'implicit' and
'implicit-def'. The 'implicit' keyword is used for the implicit register
operands, and the 'implicit-def' keyword is used for the register operands that
have both the implicit and the define flags set.

Reviewers: Duncan P. N. Exon Smith

Differential Revision: http://reviews.llvm.org/D10709

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241519 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/expected-register-after-flags.mir [new file with mode: 0644]
test/CodeGen/MIR/X86/implicit-register-flag.mir [new file with mode: 0644]
test/CodeGen/MIR/X86/register-mask-operands.mir