MLIR 23.0.0git
mlir::ub::detail::poison_attr_matcher Struct Reference

Matches a poison attribute (any attribute implementing PoisonAttrInterface). More...

#include "mlir/Dialect/UB/IR/UBMatchers.h"

Public Member Functions

bool match (Attribute attr)
bool match (Operation *op)

Detailed Description

Matches a poison attribute (any attribute implementing PoisonAttrInterface).

Supports matching against both Attribute and Operation* (via constant folding).

Definition at line 26 of file UBMatchers.h.

Member Function Documentation

◆ match() [1/2]

bool mlir::ub::detail::poison_attr_matcher::match ( Attribute attr)
inline

Definition at line 27 of file UBMatchers.h.

Referenced by match().

◆ match() [2/2]

bool mlir::ub::detail::poison_attr_matcher::match ( Operation * op)
inline

Definition at line 29 of file UBMatchers.h.

References match().


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