MLIR 22.0.0git
mlir::detail::AttrOpMatcher Struct Reference

The matcher that matches operations that have the specified attribute name. More...

#include "mlir/IR/Matchers.h"

Public Member Functions

 AttrOpMatcher (StringRef attrName)
bool match (Operation *op)

Public Attributes

StringRef attrName

Detailed Description

The matcher that matches operations that have the specified attribute name.

Definition at line 66 of file Matchers.h.

Constructor & Destructor Documentation

◆ AttrOpMatcher()

mlir::detail::AttrOpMatcher::AttrOpMatcher ( StringRef attrName)
inline

Definition at line 67 of file Matchers.h.

References attrName.

Member Function Documentation

◆ match()

bool mlir::detail::AttrOpMatcher::match ( Operation * op)
inline

Definition at line 68 of file Matchers.h.

References attrName, and mlir::Operation::hasAttr().

Member Data Documentation

◆ attrName

StringRef mlir::detail::AttrOpMatcher::attrName

Definition at line 70 of file Matchers.h.

Referenced by AttrOpMatcher(), and match().


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