OSDN Git Service

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)
commit2f801faafb47c100a44c82f810855d178df0682d
treec0a9d07de3b585e02024659c295bbd696e85c13c
parent39befc6ca87809f13cf33bb6aec5ddc36c560d92
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240295 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/MIRYamlMapping.h
lib/CodeGen/MIRParser/CMakeLists.txt
lib/CodeGen/MIRParser/MIParser.cpp [new file with mode: 0644]
lib/CodeGen/MIRParser/MIParser.h [new file with mode: 0644]
lib/CodeGen/MIRParser/MIRParser.cpp
lib/CodeGen/MIRPrinter.cpp
test/CodeGen/MIR/X86/lit.local.cfg [new file with mode: 0644]
test/CodeGen/MIR/X86/machine-instructions.mir [new file with mode: 0644]
test/CodeGen/MIR/X86/unknown-instruction.mir [new file with mode: 0644]