A Question about Using PatFrag

Hello,

I am using PatFrag with the following way but rejected.

+def AddShlShlShift1 : PatFrag<(ops node:$A, node:$B, node:$C, node:$D),

  • (add (shl node:$A, node:$B), (shl node:$C, node:$D)), [{
  • // Some condition check code.
    +}]>;

What happens if you use just “uimmlog2xlen” instead of “uimmlog2xlen:$sh1”?