MLIR
21.0.0git
|
Side effect resource corresponding to the mapping between Transform IR values and Payload IR operations. More...
#include "mlir/Dialect/Transform/Interfaces/TransformInterfaces.h"
Public Member Functions | |
StringRef | getName () override |
Return a string name of the resource. More... | |
![]() | |
virtual | ~Resource ()=default |
TypeID | getResourceID () const |
Return the unique identifier for the base resource class. More... | |
Additional Inherited Members | |
![]() | |
using | BaseT = Base< TransformMappingResource > |
![]() | |
static TransformMappingResource * | get () |
Returns a unique instance for the given effect class. More... | |
static TypeID | getResourceID () |
Return the unique identifier for the base resource class. More... | |
static bool | classof (const Resource *resource) |
'classof' used to support llvm style cast functionality. More... | |
![]() | |
Base () | |
![]() | |
Resource (TypeID id) | |
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.
|
inlineoverridevirtual |
Return a string name of the resource.
Implements mlir::SideEffects::Resource.
Definition at line 1259 of file TransformInterfaces.h.