MLIR 22.0.0git
mlir::query::matcher::MatchFinder::MatchResult Struct Reference

A subclass which preserves the matching information. More...

#include "mlir/Query/Matcher/MatchFinder.h"

Public Member Functions

 MatchResult ()=default
 MatchResult (Operation *rootOp, std::vector< Operation * > matchedOps)

Public Attributes

OperationrootOp = nullptr
std::vector< Operation * > matchedOps
 Contains the matching environment.

Detailed Description

A subclass which preserves the matching information.

Each instance contains the rootOp along with the matching environment.

Definition at line 32 of file MatchFinder.h.

Constructor & Destructor Documentation

◆ MatchResult() [1/2]

mlir::query::matcher::MatchFinder::MatchResult::MatchResult ( )
default

References matchedOps, and rootOp.

◆ MatchResult() [2/2]

mlir::query::matcher::MatchFinder::MatchResult::MatchResult ( Operation * rootOp,
std::vector< Operation * > matchedOps )

Definition at line 16 of file MatchFinder.cpp.

References matchedOps, and rootOp.

Member Data Documentation

◆ matchedOps

std::vector<Operation *> mlir::query::matcher::MatchFinder::MatchResult::matchedOps

Contains the matching environment.

Definition at line 38 of file MatchFinder.h.

Referenced by mlir::query::matcher::MatchFinder::collectMatches(), MatchResult(), and MatchResult().

◆ rootOp

Operation* mlir::query::matcher::MatchFinder::MatchResult::rootOp = nullptr

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