MLIR
20.0.0git
|
This class represents a specific resource that an effect applies to. More...
#include "mlir/Interfaces/SideEffectInterfaces.h"
Classes | |
class | Base |
This base class is used for derived effects that are non-parametric. More... | |
Public Member Functions | |
virtual | ~Resource ()=default |
TypeID | getResourceID () const |
Return the unique identifier for the base resource class. More... | |
virtual StringRef | getName ()=0 |
Return a string name of the resource. More... | |
Protected Member Functions | |
Resource (TypeID id) | |
This class represents a specific resource that an effect applies to.
This class represents an abstract interface for a given resource.
Definition at line 79 of file SideEffectInterfaces.h.
|
virtualdefault |
|
inlineprotected |
Definition at line 114 of file SideEffectInterfaces.h.
|
pure virtual |
Return a string name of the resource.
Implemented in mlir::transform::PayloadIRResource, mlir::transform::TransformMappingResource, mlir::SideEffects::AutomaticAllocationScopeResource, mlir::SideEffects::DefaultResource, mlir::acc::CurrentDeviceIdResource, mlir::acc::ConstructResource, and mlir::acc::RuntimeCounters.
|
inline |
Return the unique identifier for the base resource class.
Definition at line 108 of file SideEffectInterfaces.h.
Referenced by mlir::SideEffects::Resource::Base< DerivedResource, BaseResource >::classof(), and mayAlias().