MLIR  20.0.0git
Classes | Public Member Functions | Protected Member Functions | List of all members
mlir::SideEffects::Resource Class Referenceabstract

This class represents a specific resource that an effect applies to. More...

#include "mlir/Interfaces/SideEffectInterfaces.h"

+ Inheritance diagram for mlir::SideEffects::Resource:

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)
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ ~Resource()

virtual mlir::SideEffects::Resource::~Resource ( )
virtualdefault

◆ Resource()

mlir::SideEffects::Resource::Resource ( TypeID  id)
inlineprotected

Definition at line 114 of file SideEffectInterfaces.h.

Member Function Documentation

◆ getName()

virtual StringRef mlir::SideEffects::Resource::getName ( )
pure virtual

◆ getResourceID()

TypeID mlir::SideEffects::Resource::getResourceID ( ) const
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().


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