Skip to content

[DAG] SDPatternMatch - add generic m_TernaryOp() / m_c_TernaryOp() matchers #165378

@RKSimon

Description

@RKSimon

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.

Metadata

Metadata

Labels

good first issuehttps://github.com/llvm/llvm-project/contributellvm:SelectionDAGSelectionDAGISel as well

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions