LLVM 22.0.0git
llvm::PatternMatch::cstval_pred_ty< Predicate, ConstantVal, AllowPoison > Struct Template Reference

This helper class is used to match constant scalars, vector splats, and fixed width vectors that satisfy a specified predicate. More...

#include "llvm/IR/PatternMatch.h"

Inheritance diagram for llvm::PatternMatch::cstval_pred_ty< Predicate, ConstantVal, AllowPoison >:
[legend]

Public Member Functions

template<typename ITy>
bool match_impl (ITy *V) const
template<typename ITy>
bool match (ITy *V) const
Public Member Functions inherited from Predicate
 Predicate (std::function< bool(const MachineInstr &)> Pred)
bool operator() (const MachineInstr &MI) const
Predicate operator! () const
Predicate operator&& (const Predicate &RHS) const
Predicate operator|| (const Predicate &RHS) const

Public Attributes

const Constant ** Res = nullptr

Detailed Description

template<typename Predicate, typename ConstantVal, bool AllowPoison>
struct llvm::PatternMatch::cstval_pred_ty< Predicate, ConstantVal, AllowPoison >

This helper class is used to match constant scalars, vector splats, and fixed width vectors that satisfy a specified predicate.

For fixed width vector constants, poison elements are ignored if AllowPoison is true.

Definition at line 369 of file PatternMatch.h.

Member Function Documentation

◆ match()

template<typename Predicate, typename ConstantVal, bool AllowPoison>
template<typename ITy>
bool llvm::PatternMatch::cstval_pred_ty< Predicate, ConstantVal, AllowPoison >::match ( ITy * V) const
inline

Definition at line 405 of file PatternMatch.h.

◆ match_impl()

template<typename Predicate, typename ConstantVal, bool AllowPoison>
template<typename ITy>
bool llvm::PatternMatch::cstval_pred_ty< Predicate, ConstantVal, AllowPoison >::match_impl ( ITy * V) const
inline

Member Data Documentation

◆ Res

template<typename Predicate, typename ConstantVal, bool AllowPoison>
const Constant** llvm::PatternMatch::cstval_pred_ty< Predicate, ConstantVal, AllowPoison >::Res = nullptr

Definition at line 370 of file PatternMatch.h.


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