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

Jakob Stoklund Olesen stoklund at 2pi.dk
Fri Oct 19 18:32:58 PDT 2012


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





More information about the llvm-commits mailing list