LLVM 20.0.0git
Classes | Functions
llvm::VPlanPatternMatch::detail Namespace Reference

Classes

struct  MatchRecipeAndOpcode
 A helper to match an opcode against multiple recipe types. More...
 
struct  MatchRecipeAndOpcode< Opcode, RecipeTy >
 
struct  MatchRecipeAndOpcode< Opcode, RecipeTy, RecipeTys... >
 

Functions

template<typename TupleTy , typename Fn , std::size_t... Is>
bool CheckTupleElements (const TupleTy &Ops, Fn P, std::index_sequence< Is... >)
 
template<typename TupleTy , typename Fn >
bool all_of_tuple_elements (const TupleTy &Ops, Fn P)
 Helper to check if predicate P holds on all tuple elements in Ops.
 

Function Documentation

◆ all_of_tuple_elements()

template<typename TupleTy , typename Fn >
bool llvm::VPlanPatternMatch::detail::all_of_tuple_elements ( const TupleTy &  Ops,
Fn  P 
)

Helper to check if predicate P holds on all tuple elements in Ops.

Definition at line 160 of file VPlanPatternMatch.h.

References CheckTupleElements(), and P.

Referenced by llvm::VPlanPatternMatch::Recipe_match< Ops_t, Opcode, Commutative, RecipeTys >::match().

◆ CheckTupleElements()

template<typename TupleTy , typename Fn , std::size_t... Is>
bool llvm::VPlanPatternMatch::detail::CheckTupleElements ( const TupleTy &  Ops,
Fn  P,
std::index_sequence< Is... >   
)

Definition at line 154 of file VPlanPatternMatch.h.

References P.

Referenced by all_of_tuple_elements().