[llvm-dev] TableGen questions.

Shane Ryoo via llvm-dev llvm-dev at lists.llvm.org
Tue Sep 26 12:50:04 PDT 2017

> On 9/25/2017 6:03 PM, Shane Ryoo via llvm-dev wrote:
> >        MultSrcOneDestInst<subOpcode, op0t, 0b00,
> >                           IO_MultSrc<op0t, SpecialReg>.outsDefault,
> >                           IO_MultSrc<op0t, SpecialReg>.insDefault>;
> I suspect that the use of IO_MultSrc here is the culprit. TableGen has
> some limitations here, when it comes to instantiating classes "inline",
> like in the example above.  Try instantiating the IO_MultSrc for these
> arguments separately and passing the ins/outs as parameters.
> -Krzysztof

The ins/outs depend on the parameters, so at this rate it might be better
to flatten one multiclass and avoid that class altogether.  I'll try it and
see how it works out.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170926/d84b7ea7/attachment.html>

More information about the llvm-dev mailing list