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

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

#include "mlir/IR/Matchers.h"

Public Member Functions

 NameOpMatcher (StringRef name)
bool match (Operation *op)

Public Attributes

StringRef name

Detailed Description

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

Definition at line 58 of file Matchers.h.

Constructor & Destructor Documentation

◆ NameOpMatcher()

mlir::detail::NameOpMatcher::NameOpMatcher ( StringRef name)
inline

Definition at line 59 of file Matchers.h.

References name.

Member Function Documentation

◆ match()

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

Definition at line 60 of file Matchers.h.

References mlir::Operation::getName(), mlir::OperationName::getStringRef(), and name.

Member Data Documentation

◆ name

StringRef mlir::detail::NameOpMatcher::name

Definition at line 62 of file Matchers.h.

Referenced by match(), and NameOpMatcher().


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