MLIR  20.0.0git
Public Member Functions | Public Attributes | List of all members
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.

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 match().


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