[all-commits] [llvm/llvm-project] 9b513a: [DAG] Add generic m_TernaryOp() / m_c_TernaryOp() ...

陈子昂 via All-commits all-commits at lists.llvm.org
Wed Oct 29 08:18:01 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9b513ad505ff606f66efe8ece35351eeabc4133a
      https://github.com/llvm/llvm-project/commit/9b513ad505ff606f66efe8ece35351eeabc4133a
  Author: 陈子昂 <121872494+Michael-Chen-NJU at users.noreply.github.com>
  Date:   2025-10-29 (Wed, 29 Oct 2025)

  Changed paths:
    M llvm/include/llvm/CodeGen/SDPatternMatch.h
    M llvm/unittests/CodeGen/SelectionDAGPatternMatchTest.cpp

  Log Message:
  -----------
  [DAG] Add generic m_TernaryOp() / m_c_TernaryOp() matchers (#165520)

Similar to the m_BinOp/m_c_BinOp matchers, this patch introduces generic matchers for SelectionDAG nodes with three operands.

This includes:
- Adding m_TernaryOp() and m_c_TernaryOp() templates in SDPatternMatch.h.
- Adding comprehensive test coverage in SelectionDAGPatternMatchTest.cpp.

Fixes #165378



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list