[PATCH] MIR Serialization: Serialize the jump table info and the jump table index operands.
Duncan P. N. Exon Smith
dexonsmith at apple.com
Wed Jul 15 15:23:38 PDT 2015
> On 2015-Jul-13, at 15:34, Alex L <arphaman at gmail.com> wrote:
>
> Hi,
>
> The 2 patches below serialize the machine jump table information and the jump table index operands.
>
> 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. Example:
>
> jumpTable:
> kind: label-difference32
> entries:
> - id: 0
> blocks: [ '%bb.3.lbl1', '%bb.4.lbl2', '%bb.5.lbl3', '%bb.6.lbl4' ]
>
>
> The jump table index operands are serialized using the following syntax:
>
> %jump-table.<id>
>
> Cheers,
> Alex
> <0001-MIR-Serialization-Serialize-the-Jump-Table-Info.patch><0002-MIR-Serialization-Serialize-jump-table-index-operand.patch>
LGTM. It wasn't immediately clear to me why 0001 didn't have any
instructions, so perhaps describe that in the commit message.
More information about the llvm-commits
mailing list