LLVM 22.0.0git
llvm::PatternMatch::bind_and_match_ty< Class, MatchTy > Struct Template Reference

Check whether the value has the given Class and matches the nested pattern. More...

#include "llvm/IR/PatternMatch.h"

Public Member Functions

 bind_and_match_ty (Class *&V, const MatchTy &Match)
template<typename ITy>
bool match (ITy *V) const

Public Attributes

Class *& VR
MatchTy Match

Detailed Description

template<typename Class, typename MatchTy>
struct llvm::PatternMatch::bind_and_match_ty< Class, MatchTy >

Check whether the value has the given Class and matches the nested pattern.

Capture it into the provided variable if successful.

Definition at line 827 of file PatternMatch.h.

Constructor & Destructor Documentation

◆ bind_and_match_ty()

template<typename Class, typename MatchTy>
llvm::PatternMatch::bind_and_match_ty< Class, MatchTy >::bind_and_match_ty ( Class *& V,
const MatchTy & Match )
inline

Definition at line 831 of file PatternMatch.h.

References Match, and VR.

Member Function Documentation

◆ match()

template<typename Class, typename MatchTy>
template<typename ITy>
bool llvm::PatternMatch::bind_and_match_ty< Class, MatchTy >::match ( ITy * V) const
inline

Definition at line 833 of file PatternMatch.h.

References llvm::dyn_cast(), Match, and VR.

Member Data Documentation

◆ Match

template<typename Class, typename MatchTy>
MatchTy llvm::PatternMatch::bind_and_match_ty< Class, MatchTy >::Match

Definition at line 829 of file PatternMatch.h.

Referenced by bind_and_match_ty(), and match().

◆ VR

template<typename Class, typename MatchTy>
Class*& llvm::PatternMatch::bind_and_match_ty< Class, MatchTy >::VR

Definition at line 828 of file PatternMatch.h.

Referenced by bind_and_match_ty(), and match().


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