MLIR 22.0.0git
mlir::detail::PDLByteCode Class Reference

#include "Rewrite/ByteCode.h"

Classes

struct  MatchResult

Public Member Functions

void initializeMutableState (PDLByteCodeMutableState &state) const
 Initialize the given state such that it can be used to execute the current bytecode.
void match (Operation *op, PatternRewriter &rewriter, SmallVectorImpl< MatchResult > &matches, PDLByteCodeMutableState &state) const
LogicalResult rewrite (PatternRewriter &rewriter, const MatchResult &match, PDLByteCodeMutableState &state) const
ArrayRef< PDLByteCodePatterngetPatterns () const

Detailed Description

Definition at line 241 of file ByteCode.h.

Member Function Documentation

◆ getPatterns()

ArrayRef< PDLByteCodePattern > mlir::detail::PDLByteCode::getPatterns ( ) const
inline

Definition at line 256 of file ByteCode.h.

◆ initializeMutableState()

void PDLByteCode::initializeMutableState ( PDLByteCodeMutableState & state) const
inline

Initialize the given state such that it can be used to execute the current bytecode.

Definition at line 248 of file ByteCode.h.

◆ match()

void PDLByteCode::match ( Operation * op,
PatternRewriter & rewriter,
SmallVectorImpl< MatchResult > & matches,
PDLByteCodeMutableState & state ) const
inline

Definition at line 249 of file ByteCode.h.

Referenced by rewrite().

◆ rewrite()

LogicalResult PDLByteCode::rewrite ( PatternRewriter & rewriter,
const MatchResult & match,
PDLByteCodeMutableState & state ) const
inline

Definition at line 252 of file ByteCode.h.

References match().


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