MIR Serialization: print and parse machine function names.
authorAlex Lorenz <arphaman@gmail.com>
Thu, 28 May 2015 22:41:12 +0000 (22:41 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Thu, 28 May 2015 22:41:12 +0000 (22:41 +0000)
commit3682046086d97886126710aa83324ba3b3830e5f
treed96966cb0ac0aa8f823893498035cfd69a5ef873
parent354851651c1eae7ff749b71ba840a7d631df1f63
MIR Serialization: print and parse machine function names.

This commit introduces a serializable structure called
'llvm::yaml::MachineFunction' that stores the machine
function's name. This structure will mirror the machine
function's state in the future.

This commit prints machine functions as YAML documents
containing a YAML mapping that stores the state of a machine
function. This commit also parses the YAML documents
that contain the machine functions.

Reviewers: Duncan P. N. Exon Smith

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238519 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/MIRYamlMapping.h [new file with mode: 0644]
lib/CodeGen/MIRParser/MIRParser.cpp
lib/CodeGen/MIRPrintingPass.cpp
test/CodeGen/MIR/machine-function-missing-name.mir [new file with mode: 0644]
test/CodeGen/MIR/machine-function.mir [new file with mode: 0644]