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

Lang Hames lhames at gmail.com
Sat Oct 20 15:50:48 PDT 2012


Committed in r166382. Thanks Jakob.

- Lang.

On Fri, Oct 19, 2012 at 6:32 PM, Jakob Stoklund Olesen <stoklund at 2pi.dk>wrote:

>
> On 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.
>
> It seems like an obvious oversight to me.
>
> /jakob
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20121020/cccc4848/attachment.html>


More information about the llvm-commits mailing list