MLIR 23.0.0git
mlir::transform::TransformMappingResource Struct Reference

Side effect resource corresponding to the mapping between Transform IR values and Payload IR operations. More...

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

Inheritance diagram for mlir::transform::TransformMappingResource:

Public Member Functions

StringRef getName () const override
 Return a string name of the resource.
Public Member Functions inherited from mlir::SideEffects::Resource
virtual ~Resource ()=default
TypeID getResourceID () const
 Return the unique identifier for the base resource class.
virtual ResourcegetParent () const
 Return the parent resource in the hierarchy, or nullptr for a root.
virtual bool isAddressable () const
 Returns true if this resource is addressable (effects on it can alias pointer-based memory).
bool isSubresourceOf (const Resource *other) const
 Returns true if this resource is a subresource of (or equal to) another.
bool isDisjointFrom (const Resource *other) const
 Returns true if this resource is disjoint from another.

Additional Inherited Members

Public Types inherited from mlir::SideEffects::Resource::Base< TransformMappingResource >
using BaseT
 Use the current instantiation so get()/getResourceID() refer to this hierarchy's singleton, not Base<DerivedResource, Resource>'s.
Static Public Member Functions inherited from mlir::SideEffects::Resource::Base< TransformMappingResource >
static TransformMappingResource * get ()
 Returns a unique instance for the given effect class.
static TypeID getResourceID ()
 Return the unique identifier for the base resource class.
static bool classof (const Resource *resource)
 'classof' used to support llvm style cast functionality.
Protected Member Functions inherited from mlir::SideEffects::Resource::Base< TransformMappingResource >
 Base ()
Protected Member Functions inherited from mlir::SideEffects::Resource
 Resource (TypeID id)

Detailed Description

Side effect resource corresponding to the mapping between Transform IR values and Payload IR operations.

An Allocate effect from this resource means creating a new mapping entry, it is always accompanied by a Write effect. A Read effect from this resource means accessing the mapping. A Free effect on this resource indicates the removal of the mapping entry, typically after a transformation that modifies the Payload IR operations associated with one of the Transform IR operation's operands. It is always accompanied by a Read effect. Read-after-Free and double-Free are not allowed (they would be problematic with "regular" memory effects too) as they indicate an attempt to access Payload IR operations that have been modified, potentially erased, by the previous transformations.

Definition at line 1257 of file TransformInterfaces.h.

Member Function Documentation

◆ getName()

StringRef mlir::transform::TransformMappingResource::getName ( ) const
inlineoverridevirtual

Return a string name of the resource.

Implements mlir::SideEffects::Resource.

Definition at line 1259 of file TransformInterfaces.h.


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