[PATCH] TableGen: allow non-leaf ComplexPatterns

Jyotsna Verma jverma at codeaurora.org
Thu May 15 12:25:18 PDT 2014


  def : Pat <(stOp (OpNode (ldOp (addrPred IntRegs:$addr, extPred:$offset)),
                           immPred:$bitend),
                   (addrPred (i32 IntRegs:$addr), extPred:$offset)),
             (MI IntRegs:$addr, extPred:$offset, (xformFunc immPred:$bitend))>;
}

Hi Tim,

Your patch seems to be doing the right thing. However, I still don't understand the implication of your change on the complex patterns, SelectADDRriU6_[0-2], defined in HexagonISelDAGToDAG.cpp. Can you please explain it a little? 

Thanks,
Jyotsna

http://reviews.llvm.org/D3765






More information about the llvm-commits mailing list