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)
commit3c99e77ff950496189eeb2ad82447557195cf41c
tree98ecdbbce5a4b95caf23dab65388613b5e30f981
parent0de20884796d0806e2e3541d8e925bb4b3c5bf9e
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244185 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Target/TargetInstrInfo.h
lib/CodeGen/MIRParser/MILexer.cpp
lib/CodeGen/MIRParser/MILexer.h
lib/CodeGen/MIRParser/MIParser.cpp
lib/CodeGen/MIRPrinter.cpp
lib/Target/X86/X86InstrInfo.cpp
lib/Target/X86/X86InstrInfo.h
test/CodeGen/MIR/X86/expected-target-flag-name.mir [new file with mode: 0644]
test/CodeGen/MIR/X86/global-value-operands.mir
test/CodeGen/MIR/X86/invalid-target-flag-name.mir [new file with mode: 0644]
test/CodeGen/MIR/X86/register-operands-target-flag-error.mir [new file with mode: 0644]