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

#include "CodeGen/SelectionDAG/MatchContext.h"

Public Member Functions

 EmptyMatchContext (SelectionDAG &DAG, const TargetLowering &TLI, SDNode *Root)
 
unsigned getRootBaseOpcode ()
 
bool match (SDValue OpN, unsigned Opcode) const
 
template<typename... ArgT>
SDValue getNode (ArgT &&...Args)
 
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 21 of file MatchContext.h.

Constructor & Destructor Documentation

◆ EmptyMatchContext()

llvm::EmptyMatchContext::EmptyMatchContext ( SelectionDAG DAG,
const TargetLowering TLI,
SDNode Root 
)
inline

Definition at line 27 of file MatchContext.h.

Member Function Documentation

◆ getNode()

template<typename... ArgT>
SDValue llvm::EmptyMatchContext::getNode ( ArgT &&...  Args)
inline

Definition at line 36 of file MatchContext.h.

References llvm::SelectionDAG::getNode().

◆ getNumOperands()

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

Definition at line 49 of file MatchContext.h.

References N.

◆ getRootBaseOpcode()

unsigned llvm::EmptyMatchContext::getRootBaseOpcode ( )
inline

Definition at line 30 of file MatchContext.h.

References llvm::SDNode::getOpcode().

◆ isOperationLegal()

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

Definition at line 40 of file MatchContext.h.

References llvm::TargetLoweringBase::isOperationLegal().

◆ isOperationLegalOrCustom()

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

◆ match()

bool llvm::EmptyMatchContext::match ( SDValue  OpN,
unsigned  Opcode 
) const
inline

Definition at line 31 of file MatchContext.h.

References llvm::SDNode::getOpcode().


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