[LLVMdev] How to specify patterns for instructions with accumulator in selection DAG?

Dongrui She sarevokcc at gmail.com
Mon Jul 26 03:03:32 PDT 2010


I am wondering how to specify the selection DAG patterns for instructions
that use accumulator.
For example multiply-accumulate instruction with one destination operand and
two source operands:
mac $dst, $src1, $src2 ;; $dst += $src1*$src2

Seems that it has a cycle in the pattern. So how do I specify it in the DAG?
There are a few instructions in the ARM backend like this one, but the
patterns are left blank.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100726/56bd7d85/attachment.html>

More information about the llvm-dev mailing list