[llvm-dev] Instructions with no operand

Sky Flyer via llvm-dev llvm-dev at lists.llvm.org
Mon Nov 9 08:54:14 PST 2015


I found A solution.

Like the CLREX solution of AArch64.
I define an InstAlias, then add a default value to the "clr" instruction
(i.e. clr 0) and then change may base calss to match this.

Thanks everyone.

On Fri, Nov 6, 2015 at 8:21 PM, Krzysztof Parzyszek via llvm-dev <
llvm-dev at lists.llvm.org> wrote:

> On 11/6/2015 11:35 AM, Sky Flyer via llvm-dev wrote:
>
>> Guys, I stuck at this point. Could you please give me a hint how to
>> solve this problem without touching the LLVM backbone?!
>> Why LLVM doesn't let me define an instruction consisting of an operator
>> with no operand?
>>
>
>
> Could you try it without the pattern?  I.e. just this:
>
>      class TestInst<string opc, string asmstr, dag oops, dag iops,
>                     list<dag> pattern> : Instruction { ... }
>
>      class ALU<string opc> : TestInst<opc, "", (outs), (ins)>;
>
> See if you get the same error.  I suspect it has to do with the intrinsic
> itself, not the instruction definition.
>
> -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/20151109/ddb8a8fc/attachment.html>


More information about the llvm-dev mailing list