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)
commit78d7831b0fa2bd7c20c94ba90968923b938c6112
treead43e8371f2fed24837dbb391caf3a6df79d9dec
parent75afbfd4a14a31772528918f9d284793e775272a
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

llvm-svn: 238519
llvm/include/llvm/CodeGen/MIRYamlMapping.h [new file with mode: 0644]
llvm/lib/CodeGen/MIRParser/MIRParser.cpp
llvm/lib/CodeGen/MIRPrintingPass.cpp
llvm/test/CodeGen/MIR/machine-function-missing-name.mir [new file with mode: 0644]
llvm/test/CodeGen/MIR/machine-function.mir [new file with mode: 0644]