LLVM 20.0.0git
Public Member Functions | Public Attributes | List of all members
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 >:
Inheritance graph
[legend]

Public Member Functions

template<typename ITy >
bool match_impl (ITy *V)
 
template<typename ITy >
bool match (ITy *V)
 

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 356 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)
inline

◆ 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)
inline

Member Data Documentation

◆ Res

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

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