LLVM 22.0.0git
llvm::PatternMatch::ap_match< APTy > Struct Template Reference

#include "llvm/IR/PatternMatch.h"

Public Types

using ConstantTy

Public Member Functions

 ap_match (const APTy *&Res, bool AllowPoison)
template<typename ITy>
bool match (ITy *V) const

Public Attributes

const APTy *& Res
bool AllowPoison

Detailed Description

template<typename APTy>
struct llvm::PatternMatch::ap_match< APTy >

Definition at line 262 of file PatternMatch.h.

Member Typedef Documentation

◆ ConstantTy

template<typename APTy>
using llvm::PatternMatch::ap_match< APTy >::ConstantTy
Initial value:
std::conditional_t<std::is_same_v<APTy, APInt>, ConstantInt, ConstantFP>
ConstantFP - Floating Point Values [float, double].
Definition Constants.h:277
This is the shared class of boolean and integer constants.
Definition Constants.h:87

Definition at line 264 of file PatternMatch.h.

Constructor & Destructor Documentation

◆ ap_match()

template<typename APTy>
llvm::PatternMatch::ap_match< APTy >::ap_match ( const APTy *& Res,
bool AllowPoison )
inline

Definition at line 270 of file PatternMatch.h.

References AllowPoison, and Res.

Member Function Documentation

◆ match()

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

Member Data Documentation

◆ AllowPoison

template<typename APTy>
bool llvm::PatternMatch::ap_match< APTy >::AllowPoison

Definition at line 268 of file PatternMatch.h.

Referenced by ap_match(), and match().

◆ Res

template<typename APTy>
const APTy*& llvm::PatternMatch::ap_match< APTy >::Res

Definition at line 267 of file PatternMatch.h.

Referenced by ap_match(), and match().


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