LLVM 22.0.0git
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
unsigned getNumOperands (SDValue N) const

Detailed Description

Definition at line 52 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

◆ getNumOperands()

unsigned llvm::VPMatchContext::getNumOperands ( SDValue N) const
inline

Definition at line 175 of file MatchContext.h.

References N.

◆ getRootBaseOpcode()

unsigned llvm::VPMatchContext::getRootBaseOpcode ( )
inline

Definition at line 74 of file MatchContext.h.

References assert(), and llvm::ISD::getBaseOpcodeForVP().

◆ isOperationLegal()

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

Definition at line 164 of file MatchContext.h.

References llvm::ISD::getVPForBaseOpcode().

◆ isOperationLegalOrCustom()

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

Definition at line 169 of file MatchContext.h.

References llvm::ISD::getVPForBaseOpcode().

◆ match()


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