| 
    LLVM 22.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 31 of file SDPatternMatch.h.
      
  | 
  inlineexplicit | 
Definition at line 36 of file SDPatternMatch.h.
      
  | 
  inlineexplicit | 
Definition at line 39 of file SDPatternMatch.h.
      
  | 
  inline | 
Definition at line 44 of file SDPatternMatch.h.
Definition at line 53 of file SDPatternMatch.h.
References N.
      
  | 
  inline | 
Definition at line 46 of file SDPatternMatch.h.
Return true if N effectively has opcode Opcode.
Definition at line 49 of file SDPatternMatch.h.
References N.