LLVM 20.0.0git
Public Member Functions | List of all members
llvm::VPMatchContext Class Reference

#include "CodeGen/SelectionDAG/MatchContext.h"

Public Member Functions

 VPMatchContext (SelectionDAG &DAG, const TargetLowering &TLI, SDNode *_Root)
 
unsigned getRootBaseOpcode ()
 
bool match (SDValue OpVal, unsigned Opc) const
 whether OpVal is a node that is functionally compatible with the NodeType Opc
 
SDValue getNode (unsigned Opcode, const SDLoc &DL, EVT VT, SDValue Operand)
 
SDValue getNode (unsigned Opcode, const SDLoc &DL, EVT VT, SDValue N1, SDValue N2)
 
SDValue getNode (unsigned Opcode, const SDLoc &DL, EVT VT, SDValue N1, SDValue N2, SDValue N3)
 
SDValue getNode (unsigned Opcode, const SDLoc &DL, EVT VT, SDValue Operand, SDNodeFlags Flags)
 
SDValue getNode (unsigned Opcode, const SDLoc &DL, EVT VT, SDValue N1, SDValue N2, SDNodeFlags Flags)
 
SDValue getNode (unsigned Opcode, const SDLoc &DL, EVT VT, SDValue N1, SDValue N2, SDValue N3, SDNodeFlags Flags)
 
bool isOperationLegal (unsigned Op, EVT VT) const
 
bool isOperationLegalOrCustom (unsigned Op, EVT VT, bool LegalOnly=false) const
 

Detailed Description

Definition at line 50 of file MatchContext.h.

Constructor & Destructor Documentation

◆ VPMatchContext()

llvm::VPMatchContext::VPMatchContext ( SelectionDAG DAG,
const TargetLowering TLI,
SDNode _Root 
)
inline

Member Function Documentation

◆ getNode() [1/6]

SDValue llvm::VPMatchContext::getNode ( unsigned  Opcode,
const SDLoc DL,
EVT  VT,
SDValue  N1,
SDValue  N2 
)
inline

◆ getNode() [2/6]

SDValue llvm::VPMatchContext::getNode ( unsigned  Opcode,
const SDLoc DL,
EVT  VT,
SDValue  N1,
SDValue  N2,
SDNodeFlags  Flags 
)
inline

◆ getNode() [3/6]

SDValue llvm::VPMatchContext::getNode ( unsigned  Opcode,
const SDLoc DL,
EVT  VT,
SDValue  N1,
SDValue  N2,
SDValue  N3 
)
inline

◆ getNode() [4/6]

SDValue llvm::VPMatchContext::getNode ( unsigned  Opcode,
const SDLoc DL,
EVT  VT,
SDValue  N1,
SDValue  N2,
SDValue  N3,
SDNodeFlags  Flags 
)
inline

◆ getNode() [5/6]

SDValue llvm::VPMatchContext::getNode ( unsigned  Opcode,
const SDLoc DL,
EVT  VT,
SDValue  Operand 
)
inline

◆ getNode() [6/6]

SDValue llvm::VPMatchContext::getNode ( unsigned  Opcode,
const SDLoc DL,
EVT  VT,
SDValue  Operand,
SDNodeFlags  Flags 
)
inline

◆ getRootBaseOpcode()

unsigned llvm::VPMatchContext::getRootBaseOpcode ( )
inline

◆ isOperationLegal()

bool llvm::VPMatchContext::isOperationLegal ( unsigned  Op,
EVT  VT 
) const
inline

◆ isOperationLegalOrCustom()

bool llvm::VPMatchContext::isOperationLegalOrCustom ( unsigned  Op,
EVT  VT,
bool  LegalOnly = false 
) const
inline

◆ match()

bool llvm::VPMatchContext::match ( SDValue  OpVal,
unsigned  Opc 
) const
inline

The documentation for this class was generated from the following file: