Teach tblgen to accept register source operands in patterns, e.g.
authorEvan Cheng <evan.cheng@apple.com>
Thu, 1 Dec 2005 00:18:45 +0000 (00:18 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Thu, 1 Dec 2005 00:18:45 +0000 (00:18 +0000)
commit66a48bbc3565b40ea0e6f2d58cf5e3a8e64802ef
tree581c3a92474988022c6c8de897e1b265c1078cdc
parent86193d1190b30a537415fc1c384f4e51039fab74
Teach tblgen to accept register source operands in patterns, e.g.

def SHL8rCL  : I<0xD2, MRM4r, (ops R8 :$dst, R8 :$src),
                 "shl{b} {%cl, $dst|$dst, %CL}",
                 [(set R8:$dst, (shl R8:$src, CL))]>, Imp<[CL],[]>;

This generates a CopyToReg operand and added its 2nd result to the shl as
a flag operand.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24557 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/SelectionDAG.h
utils/TableGen/DAGISelEmitter.cpp
utils/TableGen/DAGISelEmitter.h