|
LLVM 23.0.0git
|
MatchContext can repurpose existing patterns to behave differently under a certain context. More...
#include "llvm/CodeGen/SDPatternMatch.h"
Public Member Functions | |
| BasicMatchContext (const SelectionDAG *DAG) | |
| BasicMatchContext (const TargetLowering *TLI) | |
| const SelectionDAG * | getDAG () const |
| const TargetLowering * | getTLI () const |
| bool | match (SDValue N, unsigned Opcode) const |
| Return true if N effectively has opcode Opcode. | |
| unsigned | getNumOperands (SDValue N) const |
MatchContext can repurpose existing patterns to behave differently under a certain context.
For instance, m_Opc(ISD::ADD) matches plain ADD nodes in normal circumstances, but matches VP_ADD nodes under a custom VPMatchContext. This design is meant to facilitate code / pattern reusing.
Definition at line 32 of file SDPatternMatch.h.
|
inlineexplicit |
Definition at line 37 of file SDPatternMatch.h.
|
inlineexplicit |
Definition at line 40 of file SDPatternMatch.h.
|
inline |
Definition at line 45 of file SDPatternMatch.h.
Definition at line 54 of file SDPatternMatch.h.
References N.
|
inline |
Definition at line 47 of file SDPatternMatch.h.
Return true if N effectively has opcode Opcode.
Definition at line 50 of file SDPatternMatch.h.
References N.