MIR Serialization: Serialize the unnamed basic block references.
authorAlex Lorenz <arphaman@gmail.com>
Mon, 27 Jul 2015 22:42:41 +0000 (22:42 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Mon, 27 Jul 2015 22:42:41 +0000 (22:42 +0000)
commit01b5d5b27f4d142c9c79c675b052deca0760b111
tree554e00f00b463b1b12ac314d726dc48dffa3e4d1
parent3f7b9111968b23064ee2546eb1f77bbb6f926924
MIR Serialization: Serialize the unnamed basic block references.

This commit serializes the references from the machine basic blocks to the
unnamed basic blocks.

This commit adds a new attribute to the machine basic block's YAML mapping
called 'ir-block'. This attribute contains the actual reference to the
basic block.

Reviewers: Duncan P. N. Exon Smith

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@243340 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/MIRYamlMapping.h
lib/CodeGen/MIRParser/MILexer.cpp
lib/CodeGen/MIRParser/MILexer.h
lib/CodeGen/MIRParser/MIParser.cpp
lib/CodeGen/MIRParser/MIParser.h
lib/CodeGen/MIRParser/MIRParser.cpp
lib/CodeGen/MIRPrinter.cpp
test/CodeGen/MIR/machine-basic-block-expected-ir-block.mir [new file with mode: 0644]
test/CodeGen/MIR/machine-basic-block-ir-block-reference.mir [new file with mode: 0644]
test/CodeGen/MIR/machine-basic-block-undefined-ir-block.mir [new file with mode: 0644]