MLIR  18.0.0git
Public Member Functions | Friends | List of all members
mlir::transform::TransformState::RegionScope Class Reference

A RAII object maintaining a "stack frame" for a transform IR region. More...

#include "mlir/Dialect/Transform/IR/TransformInterfaces.h"

Public Member Functions

 ~RegionScope ()
 Forgets the mapping from or to values defined in the associated transform IR region, and restores the mapping that existed before entering this scope. More...
 

Friends

RegionScope TransformState::make_region_scope (Region &)
 

Detailed Description

A RAII object maintaining a "stack frame" for a transform IR region.

When applying a transform IR operation that contains a region, the caller is expected to create a RegionScope before applying the ops contained in the region. This ensures that the mappings between values defined in the transform IR region and payload IR operations are cleared when the region processing ends; such values cannot be accessed outside the region.

Definition at line 337 of file TransformInterfaces.h.

Constructor & Destructor Documentation

◆ ~RegionScope()

transform::TransformState::RegionScope::~RegionScope ( )

Forgets the mapping from or to values defined in the associated transform IR region, and restores the mapping that existed before entering this scope.

Definition at line 1128 of file TransformInterfaces.cpp.

Friends And Related Function Documentation

◆ TransformState::make_region_scope


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