[PATCH] MIR Serialization: Serialize the jump table info and the jump table index operands.

Alex L arphaman at gmail.com
Wed Jul 15 16:39:34 PDT 2015


Thanks, the patches got committed in r242357 and r242358.

2015-07-15 15:23 GMT-07:00 Duncan P. N. Exon Smith <dexonsmith at apple.com>:

>
> > 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150715/0226e51a/attachment.html>


More information about the llvm-commits mailing list