[llvm-dev] Operand does not exist in operand list

m m via llvm-dev llvm-dev at lists.llvm.org
Tue Oct 16 17:30:22 PDT 2018


Hi,

Absolute LLVM newbie here. I am trying to define an add instruction which takes 2 register inputs ra and rb and writes the sum into ra.


def ADDR : F_R<0b000000,(outs) , (ins CPURegs:$rb, CPURegs:$ra),"ADDR $ra, $rb",[(set CPURegs:$ra, (add CPURegs:$ra, CPURegs:$rb))] >;


I get this error:
error: In ADDR: Operand $rb does not exist in operand list!


Does anybody know what that means?

Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20181017/b5429e27/attachment.html>


More information about the llvm-dev mailing list