[all-commits] [llvm/llvm-project] f0c1a9: [DAG] Add SDPatternMatch::m_Result to match a spec...

Min-Yih Hsu via All-commits all-commits at lists.llvm.org
Thu Jun 26 09:38:44 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f0c1a9a85d1864aef23b3aa9157df1c48c9f2a5e
      https://github.com/llvm/llvm-project/commit/f0c1a9a85d1864aef23b3aa9157df1c48c9f2a5e
  Author: Min-Yih Hsu <min.hsu at sifive.com>
  Date:   2025-06-26 (Thu, 26 Jun 2025)

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

  Log Message:
  -----------
  [DAG] Add SDPatternMatch::m_Result to match a specific SDValue result (#145775)

`m_Result<N>` matches a SDValue that is the N-th result of the defining
SDNode. This is useful for creating a more fine-grained matching on
SDNode with multiple results.

-----
Inspired by #145481



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