LLVM 19.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]

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

Definition at line 350 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 351 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: