[llvm-dev] TableGen error message: top-level forms in instruction pattern should have void types

Phil Tomson via llvm-dev llvm-dev at lists.llvm.org
Thu Jan 7 13:25:20 PST 2016


On Thu, Jan 7, 2016 at 12:21 PM, Krzysztof Parzyszek via llvm-dev <
llvm-dev at lists.llvm.org> wrote:

> On 1/7/2016 1:55 PM, Phil Tomson via llvm-dev wrote:
>
>>
>> let Uses= [GRP] in {
>>    def RelAddr           : XSTGPseudo< (outs),
>>                                        (ins GPRC:$spoff, GPRC:$dst),
>>                                        "! RELADDR $spoff, $dst",
>>                                        [(XSTGRELADDR GPRC:$spoff, GPRC:
>> $dst)]>;
>> }
>>
>>
>>
> Remove the "dst" operand from XSTGRELADDR and try something like
> [(set GPRC:$dst, (XSTGRELADDR GPRC:$spoff))]
>
>
That's better, but now I get:

 XSTGInstrInfo.td:902:3: error: In RelAddr: XSTGRELADDR node requires
exactly 2 operands!

Which makes some sense as XSTGRELADDR is defined as:
def SDT_RELADDR       : SDTypeProfile<1, 2, [SDTCisInt<0>, SDTCisSameAs<0,
1>]>;
def XSTGRELADDR       : SDNode<"XSTGISD::RELADDR", SDT_RELADDR>;

Phil

-Krzysztof
>
>
> --
> Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted
> by The Linux Foundation
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160107/9303b8a6/attachment.html>


More information about the llvm-dev mailing list