LLVM 19.0.0git
Public Member Functions | 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 (ITy *V)
 

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

Definition at line 357 of file PatternMatch.h.

References assert(), and llvm::CallingConv::C.

Referenced by llvm::PatternMatch::is_zero::match().


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