search for: sdnode_xform

Displaying 2 results from an estimated 2 matches for "sdnode_xform".

2012 May 11
2
[LLVMdev] TableGen pattern for negated operand
...nst< (outs GPR32:$dst), (ins GPR32:$src1, GPR32:$src2), "mul $dst, -$src1, $src2", [(set $dst, (mul (fneg_su GPR32:$src1), GPR32:$src2))]>; but I would like to believe there's a way to do this with a Pattern<> definition instead, with help from PatFrag and the SDNode_XFORM perhaps. I looked at the ARM target code with PatFrag for negated immediates but that approach doesn't seem possible with register operands, as I don't know what xform would operate on. With immediates you have a DAG node you can generate. Also, it does seem like this is a folding operati...
2012 May 11
0
[LLVMdev] TableGen pattern for negated operand
...t; (ins GPR32:$src1, GPR32:$src2), > "mul $dst, -$src1, $src2", > [(set $dst, (mul (fneg_su GPR32:$src1), GPR32:$src2))]>; > > but I would like to believe there's a way to do this with a Pattern<> > definition instead, with help from PatFrag and the SDNode_XFORM > perhaps. > > I looked at the ARM target code with PatFrag for negated immediates > but that approach doesn't seem possible with register operands, as I > don't know what xform would operate on. With immediates you have a DAG > node you can generate. > > Also, it do...