LLVM  15.0.0git
Public Member Functions | List of all members
llvm::PatternMatch::cstval_pred_ty< Predicate, ConstantVal > 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 >:
Inheritance graph
[legend]
Collaboration diagram for llvm::PatternMatch::cstval_pred_ty< Predicate, ConstantVal >:
Collaboration graph
[legend]

Public Member Functions

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

Detailed Description

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

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, undefined elements are ignored.

Definition at line 328 of file PatternMatch.h.

Member Function Documentation

◆ match()

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

Definition at line 329 of file PatternMatch.h.

References assert(), llvm::Constant::getAggregateElement(), and i.

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


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