LLVM 22.0.0git
llvm::PatternMatch::apf_pred_ty< Predicate > Struct Template Reference

This helper class is used to match scalar and vector constants that satisfy a specified predicate, and bind them to an APFloat. More...

#include "llvm/IR/PatternMatch.h"

Inheritance diagram for llvm::PatternMatch::apf_pred_ty< Predicate >:
[legend]

Public Member Functions

 apf_pred_ty (const APFloat *&R)
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 APFloat *& Res

Detailed Description

template<typename Predicate>
struct llvm::PatternMatch::apf_pred_ty< Predicate >

This helper class is used to match scalar and vector constants that satisfy a specified predicate, and bind them to an APFloat.

Poison is allowed in splat vector constants.

Definition at line 440 of file PatternMatch.h.

Constructor & Destructor Documentation

◆ apf_pred_ty()

template<typename Predicate>
llvm::PatternMatch::apf_pred_ty< Predicate >::apf_pred_ty ( const APFloat *& R)
inline

Definition at line 443 of file PatternMatch.h.

References Res.

Member Function Documentation

◆ match()

template<typename Predicate>
template<typename ITy>
bool llvm::PatternMatch::apf_pred_ty< Predicate >::match ( ITy * V) const
inline

Definition at line 445 of file PatternMatch.h.

References llvm::CallingConv::C, llvm::dyn_cast(), llvm::dyn_cast_or_null(), and Res.

Member Data Documentation

◆ Res

Definition at line 441 of file PatternMatch.h.

Referenced by apf_pred_ty(), and match().


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