MIR Serialization: Serialize machine instruction names.
authorAlex Lorenz <arphaman@gmail.com>
Mon, 22 Jun 2015 17:02:30 +0000 (17:02 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Mon, 22 Jun 2015 17:02:30 +0000 (17:02 +0000)
commit8e0a1b4857faf0ea9504ec254020dc22cd4f6cc1
tree8f7b6b2153ae6936a7a9e32282fda87e95c5a5fe
parent7f09a98ab138886454dfdf123a9fe9811ac20fb3
MIR Serialization: Serialize machine instruction names.

This commit implements initial machine instruction serialization. It
serializes machine instruction names. The instructions are represented
using a YAML sequence of string literals and are a part of machine
basic block YAML mapping.

This commit introduces a class called 'MIParser' which will be used to
parse the machine instructions and operands.

Reviewers: Duncan P. N. Exon Smith

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

llvm-svn: 240295
llvm/include/llvm/CodeGen/MIRYamlMapping.h
llvm/lib/CodeGen/MIRParser/CMakeLists.txt
llvm/lib/CodeGen/MIRParser/MIParser.cpp [new file with mode: 0644]
llvm/lib/CodeGen/MIRParser/MIParser.h [new file with mode: 0644]
llvm/lib/CodeGen/MIRParser/MIRParser.cpp
llvm/lib/CodeGen/MIRPrinter.cpp
llvm/test/CodeGen/MIR/X86/lit.local.cfg [new file with mode: 0644]
llvm/test/CodeGen/MIR/X86/machine-instructions.mir [new file with mode: 0644]
llvm/test/CodeGen/MIR/X86/unknown-instruction.mir [new file with mode: 0644]