|
MLIR 23.0.0git
|
A conservative default resource kind. More...
#include "mlir/Interfaces/SideEffectInterfaces.h"
Public Member Functions | |
| DefaultResource ()=default | |
| 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 Resource * | getParent () 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. | |
Protected Member Functions | |
| DefaultResource (TypeID id) | |
| For use when this type is the parent of another resource; allows the derived resource to pass its TypeID so the hierarchy is correct. | |
| Protected Member Functions inherited from mlir::SideEffects::Resource::Base< DefaultResource > | |
| Base () | |
| Protected Member Functions inherited from mlir::SideEffects::Resource | |
| Resource (TypeID id) | |
Additional Inherited Members | |
| Public Types inherited from mlir::SideEffects::Resource::Base< DefaultResource > | |
| 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< DefaultResource > | |
| static DefaultResource * | 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. | |
A conservative default resource kind.
Definition at line 179 of file SideEffectInterfaces.h.
|
default |
|
inlineprotected |
For use when this type is the parent of another resource; allows the derived resource to pass its TypeID so the hierarchy is correct.
Definition at line 186 of file SideEffectInterfaces.h.
|
inlineoverridevirtual |
Return a string name of the resource.
Implements mlir::SideEffects::Resource.
Definition at line 181 of file SideEffectInterfaces.h.