Currently we have a few duplicated matcher classes, which all do pretty
much the same thing. This patch introduces generic
One,Tow,ThreeOps_match classes which take the opcode the match as
template argument.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Thanks for having a look @lebedev.ri. I somehow missed your comments until now :/
include/llvm/IR/PatternMatch.h | ||
---|---|---|
1031 ↗ | (On Diff #161743) | Personally I think it is more natural to refer to them as Op1,2,3 instead of Op0,1,2, but given that we have T0,1,2 using Op0,1,2 seems less confusing overall. |