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

#include "Rewrite/ByteCode.h"

Public Member Functions

void cleanupAfterMatchAndRewrite ()
 Cleanup any allocated state after a full match/rewrite has been completed.
void updatePatternBenefit (unsigned patternIndex, PatternBenefit benefit)
 Set the new benefit for a bytecode pattern.

Detailed Description

Definition at line 233 of file ByteCode.h.

Member Function Documentation

◆ cleanupAfterMatchAndRewrite()

void PDLByteCodeMutableState::cleanupAfterMatchAndRewrite ( )
inline

Cleanup any allocated state after a full match/rewrite has been completed.

This method should be called irregardless of whether the match+rewrite was a success or not.

Definition at line 235 of file ByteCode.h.

◆ updatePatternBenefit()

void PDLByteCodeMutableState::updatePatternBenefit ( unsigned patternIndex,
PatternBenefit benefit )
inline

Set the new benefit for a bytecode pattern.

The patternIndex corresponds to the position of the pattern within the range returned by PDLByteCode::getPatterns.

Definition at line 236 of file ByteCode.h.


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