LLVM 20.0.0git
Public Member Functions | Public Attributes | List of all members
llvm::PatternMatch::AnyOps_match< Opcode, OperandTypes > Struct Template Reference

Matches instructions with Opcode and any number of operands. More...

#include "llvm/IR/PatternMatch.h"

Public Member Functions

 AnyOps_match (const OperandTypes &...Ops)
 
template<int Idx, int Last>
std::enable_if_t< Idx !=Last, boolmatch_operands (const Instruction *I)
 
template<int Idx, int Last>
std::enable_if_t< Idx==Last, boolmatch_operands (const Instruction *I)
 
template<typename OpTy >
bool match (OpTy *V)
 

Public Attributes

std::tuple< OperandTypes... > Operands
 

Detailed Description

template<unsigned Opcode, typename... OperandTypes>
struct llvm::PatternMatch::AnyOps_match< Opcode, OperandTypes >

Matches instructions with Opcode and any number of operands.

Definition at line 1739 of file PatternMatch.h.

Constructor & Destructor Documentation

◆ AnyOps_match()

template<unsigned Opcode, typename... OperandTypes>
llvm::PatternMatch::AnyOps_match< Opcode, OperandTypes >::AnyOps_match ( const OperandTypes &...  Ops)
inline

Definition at line 1742 of file PatternMatch.h.

Member Function Documentation

◆ match()

template<unsigned Opcode, typename... OperandTypes>
template<typename OpTy >
bool llvm::PatternMatch::AnyOps_match< Opcode, OperandTypes >::match ( OpTy *  V)
inline

◆ match_operands() [1/2]

template<unsigned Opcode, typename... OperandTypes>
template<int Idx, int Last>
std::enable_if_t< Idx !=Last, bool > llvm::PatternMatch::AnyOps_match< Opcode, OperandTypes >::match_operands ( const Instruction I)
inline

Definition at line 1749 of file PatternMatch.h.

References I.

Referenced by llvm::PatternMatch::AnyOps_match< Opcode, OperandTypes >::match().

◆ match_operands() [2/2]

template<unsigned Opcode, typename... OperandTypes>
template<int Idx, int Last>
std::enable_if_t< Idx==Last, bool > llvm::PatternMatch::AnyOps_match< Opcode, OperandTypes >::match_operands ( const Instruction I)
inline

Member Data Documentation

◆ Operands

template<unsigned Opcode, typename... OperandTypes>
std::tuple<OperandTypes...> llvm::PatternMatch::AnyOps_match< Opcode, OperandTypes >::Operands

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