LLVM 22.0.0git
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 236 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

Definition at line 241 of file SDPatternMatch.h.

References Ctx, N, and P.

Member Data Documentation

◆ Ctx

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

Definition at line 237 of file SDPatternMatch.h.

Referenced by match().

◆ P

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

Definition at line 238 of file SDPatternMatch.h.

Referenced by match().


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