MLIR 23.0.0git
mlir::SideEffects::DefaultResource Struct Reference

A conservative default resource kind. More...

#include "mlir/Interfaces/SideEffectInterfaces.h"

Inheritance diagram for mlir::SideEffects::DefaultResource:

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 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.

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 DefaultResourceget ()
 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.

Detailed Description

A conservative default resource kind.

Definition at line 179 of file SideEffectInterfaces.h.

Constructor & Destructor Documentation

◆ DefaultResource() [1/2]

mlir::SideEffects::DefaultResource::DefaultResource ( )
default

◆ DefaultResource() [2/2]

mlir::SideEffects::DefaultResource::DefaultResource ( TypeID id)
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.

Member Function Documentation

◆ getName()

StringRef mlir::SideEffects::DefaultResource::getName ( ) const
inlineoverridevirtual

Return a string name of the resource.

Implements mlir::SideEffects::Resource.

Definition at line 181 of file SideEffectInterfaces.h.


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