[all-commits] [llvm/llvm-project] abf8e2: [DAG] Add `SDPatternMatch::m_Load` (#145481)

Abhishek Kaushik via All-commits all-commits at lists.llvm.org
Thu Jun 26 10:33:53 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: abf8e25ac7644dd035361383ec4f74e0456c1b3e
      https://github.com/llvm/llvm-project/commit/abf8e25ac7644dd035361383ec4f74e0456c1b3e
  Author: Abhishek Kaushik <abhishek.kaushik at intel.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_Load` (#145481)

Add SDPatternMatch matcher and unit test coverage for `ISD::LOAD`
opcode.
This only matches the loaded value i.e. ResNo 0 and not the output
chain.
e.g.
```
m_Load(m_Value(), m_Value(), m_Value())
```

The first value is the input chain, the second is the base pointer, and
the last value is the offset.



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