[llvm-commits] [PATCH] Allow reversed operand order in Tablegen tied-operand constraints.

Lang Hames lhames at gmail.com
Fri Oct 19 17:13:08 PDT 2012


Thanks for the catch. :)

- Lang.

On Fri, Oct 19, 2012 at 5:11 PM, David Blaikie <dblaikie at gmail.com> wrote:

> ENOPATCH
>
> On Fri, Oct 19, 2012 at 4:58 PM, Lang Hames <lhames at gmail.com> wrote:
> > When specifying tied operand constraints ("$src = $dst") in tablegen the
> > order of the operands currently matters. If the operands are specified in
> > reverse order ("$dst = $src") tablegen barfs with an opaque "Illegal
> format
> > for tied-to constraint" error.
> >
> > Does anyone know if there's any reason to prohibit the commuted form? If
> > there's not I'll apply this patch, which will allow the commuted form to
> be
> > parsed.
> >
> > - Lang.
> >
> > _______________________________________________
> > llvm-commits mailing list
> > llvm-commits at cs.uiuc.edu
> > http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20121019/0e0fb9ed/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tablegen_tied_ops_commutability.patch
Type: application/octet-stream
Size: 890 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20121019/0e0fb9ed/attachment.obj>


More information about the llvm-commits mailing list