MIR Serialization: Initial serialization of the machine operand target flags.
authorAlex Lorenz <arphaman@gmail.com>
Thu, 6 Aug 2015 00:44:07 +0000 (00:44 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Thu, 6 Aug 2015 00:44:07 +0000 (00:44 +0000)
commit49873a838208f0ac0fe454444e6d603d9cc2877b
tree97bc740db86fb0ddc0ccc62e49c51cc11686f302
parent7f6c30109063c4c7aa98ef78c39fea26bc04b502
MIR Serialization: Initial serialization of the machine operand target flags.

This commit implements the initial serialization of the machine operand target
flags. It extends the 'TargetInstrInfo' class to add two new methods that help
to provide text based serialization for the target flags.

This commit can serialize only the X86 target flags, and the target flags for
the other targets will be serialized in the follow-up commits.

Reviewers: Duncan P. N. Exon Smith
llvm-svn: 244185
llvm/include/llvm/Target/TargetInstrInfo.h
llvm/lib/CodeGen/MIRParser/MILexer.cpp
llvm/lib/CodeGen/MIRParser/MILexer.h
llvm/lib/CodeGen/MIRParser/MIParser.cpp
llvm/lib/CodeGen/MIRPrinter.cpp
llvm/lib/Target/X86/X86InstrInfo.cpp
llvm/lib/Target/X86/X86InstrInfo.h
llvm/test/CodeGen/MIR/X86/expected-target-flag-name.mir [new file with mode: 0644]
llvm/test/CodeGen/MIR/X86/global-value-operands.mir
llvm/test/CodeGen/MIR/X86/invalid-target-flag-name.mir [new file with mode: 0644]
llvm/test/CodeGen/MIR/X86/register-operands-target-flag-error.mir [new file with mode: 0644]