MIR Serialization: Serialize the jump table info.
authorAlex Lorenz <arphaman@gmail.com>
Wed, 15 Jul 2015 23:31:07 +0000 (23:31 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Wed, 15 Jul 2015 23:31:07 +0000 (23:31 +0000)
commit81bef8c7a7118eeffd26d996444f96b76db8bc7b
tree7d29abfdf8408276ce00939c0747a8bc7d5b7203
parent155c5e75fb0cb8b9ba8c94ad43c96f63b2df0cfe
MIR Serialization: Serialize the jump table info.

The jump table info is serialized using a YAML mapping that contains its kind
and a YAML sequence of jump table entries. A jump table entry is a YAML mapping
that has an ID and an inline YAML sequence of machine basic block references.

The testcase 'CodeGen/MIR/X86/jump-table-info.mir' doesn't have any instructions
because one of them contains a jump table index operand. The jump table index
operands will be serialized in a follow up patch, and the appropriate
instructions will be added to this testcase.

Reviewers: Duncan P. N. Exon Smith

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@242357 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/MIRYamlMapping.h
lib/CodeGen/MIRParser/MIRParser.cpp
lib/CodeGen/MIRPrinter.cpp
test/CodeGen/MIR/X86/jump-table-info.mir [new file with mode: 0644]
test/CodeGen/MIR/invalid-jump-table-kind.mir [new file with mode: 0644]