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

An automatic allocation-scope resource that is valid in the context of a parent AutomaticAllocationScope trait. More...

#include "mlir/Interfaces/SideEffectInterfaces.h"

Inheritance diagram for mlir::SideEffects::AutomaticAllocationScopeResource:

Public Member Functions

StringRef getName () const final
 Return a string name of the resource.
ResourcegetParent () const override
 Return the parent resource in the hierarchy, or nullptr for a root.
Public Member Functions inherited from mlir::SideEffects::DefaultResource
 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 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< AutomaticAllocationScopeResource, DefaultResource >
using BaseT
 Use the current instantiation so get()/getResourceID() refer to this hierarchy's singleton, not Base<DerivedResource, Resource>'s.
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< AutomaticAllocationScopeResource, DefaultResource >
static AutomaticAllocationScopeResourceget ()
 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.
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.
Protected Member Functions inherited from mlir::SideEffects::Resource::Base< AutomaticAllocationScopeResource, DefaultResource >
 Base ()
Protected Member Functions inherited from mlir::SideEffects::DefaultResource
 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)

Detailed Description

An automatic allocation-scope resource that is valid in the context of a parent AutomaticAllocationScope trait.

Definition at line 191 of file SideEffectInterfaces.h.

Member Function Documentation

◆ getName()

StringRef mlir::SideEffects::AutomaticAllocationScopeResource::getName ( ) const
inlinefinalvirtual

Return a string name of the resource.

Implements mlir::SideEffects::Resource.

Definition at line 193 of file SideEffectInterfaces.h.

◆ getParent()

Resource * mlir::SideEffects::AutomaticAllocationScopeResource::getParent ( ) const
inlineoverridevirtual

Return the parent resource in the hierarchy, or nullptr for a root.

Reimplemented from mlir::SideEffects::Resource.

Definition at line 194 of file SideEffectInterfaces.h.

References mlir::SideEffects::Resource::Base< DefaultResource >::get().


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