[llvm-dev] What pattern string corresponds to CopyToReg?
Robert Baruch via llvm-dev
llvm-dev at lists.llvm.org
Sat Nov 4 19:02:14 PDT 2017
So there's a DAG that looks like this in the debug output:
Selecting: t3: ch,glue = CopyToReg t0, Register:i16 %R5, Constant:i16<127>
In the instruction selection phase, what pattern would that match? I've
constructed this so far:
(??? REG16:$dst, i16imm:$src)
but the problem is, I can't determine what to use as ???. There is an
ISD::CopyToReg enum value, but I don't know how that translates to the
string to use in the pattern.
And more generally, how do I find out from a DAG diagram like the ones
output by -view-isel-dags which node type corresponds to which pattern
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev