Similar to m_BinOp / m_c_BinOp - to allow us to match a fixed opcode with 3 operands (fma ops etc.).
This mainly involves adding a generic wrapper for the TernaryOpc_match template along with suitable test coverage in SelectionDAGPatternMatchTest.cpp - there might be some simple combines in DAGCombiner.cpp that can be converted as well.