LLVM 20.0.0git
Public Member Functions | Public Attributes | List of all members
llvm::SDPatternMatch::SwitchContext< NewMatchContext, Pattern > Struct Template Reference

Switch to a different MatchContext for subsequent patterns. More...

#include "llvm/CodeGen/SDPatternMatch.h"

Public Member Functions

template<typename OrigMatchContext >
bool match (const OrigMatchContext &, SDValue N)
 

Public Attributes

const NewMatchContext & Ctx
 
Pattern P
 

Detailed Description

template<typename NewMatchContext, typename Pattern>
struct llvm::SDPatternMatch::SwitchContext< NewMatchContext, Pattern >

Switch to a different MatchContext for subsequent patterns.

Definition at line 211 of file SDPatternMatch.h.

Member Function Documentation

◆ match()

template<typename NewMatchContext , typename Pattern >
template<typename OrigMatchContext >
bool llvm::SDPatternMatch::SwitchContext< NewMatchContext, Pattern >::match ( const OrigMatchContext &  ,
SDValue  N 
)
inline

Member Data Documentation

◆ Ctx

template<typename NewMatchContext , typename Pattern >
const NewMatchContext& llvm::SDPatternMatch::SwitchContext< NewMatchContext, Pattern >::Ctx

◆ P

template<typename NewMatchContext , typename Pattern >
Pattern llvm::SDPatternMatch::SwitchContext< NewMatchContext, Pattern >::P

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