MLIR  20.0.0git
Public Member Functions | Static Public Member Functions | List of all members
mlir::tracing::ActionImpl< Derived > Class Template Reference

CRTP Implementation of an action. More...

#include "mlir/IR/Action.h"

+ Inheritance diagram for mlir::tracing::ActionImpl< Derived >:

Public Member Functions

 ActionImpl (ArrayRef< IRUnit > irUnits={})
 
StringRef getTag () const final
 Forward tag access to the derived class. More...
 
- Public Member Functions inherited from mlir::tracing::Action
virtual ~Action ()=default
 
TypeID getActionID () const
 Return the unique action id of this action, use for casting functionality. More...
 
virtual void print (raw_ostream &os) const
 
virtual ArrayRef< IRUnitgetContextIRUnits () const
 Return the set of IR units that are associated with this action. More...
 

Static Public Member Functions

static bool classof (const Action *action)
 Provide classof to allow casting between action types. More...
 

Additional Inherited Members

- Protected Member Functions inherited from mlir::tracing::Action
 Action (TypeID actionID, ArrayRef< IRUnit > irUnits)
 
- Protected Attributes inherited from mlir::tracing::Action
TypeID actionID
 The type of the derived action class, used for isa/dyn_cast. More...
 
ArrayRef< IRUnitirUnits
 Set of IR units (operations, regions, blocks, values) that are associated with this action. More...
 

Detailed Description

template<typename Derived>
class mlir::tracing::ActionImpl< Derived >

CRTP Implementation of an action.

This class provides a base class for implementing specific actions. Derived classes are expected to provide the following:

Definition at line 76 of file Action.h.

Constructor & Destructor Documentation

◆ ActionImpl()

template<typename Derived >
mlir::tracing::ActionImpl< Derived >::ActionImpl ( ArrayRef< IRUnit irUnits = {})
inline

Definition at line 78 of file Action.h.

Member Function Documentation

◆ classof()

template<typename Derived >
static bool mlir::tracing::ActionImpl< Derived >::classof ( const Action action)
inlinestatic

Provide classof to allow casting between action types.

Definition at line 82 of file Action.h.

References mlir::tracing::Action::getActionID().

◆ getTag()

template<typename Derived >
StringRef mlir::tracing::ActionImpl< Derived >::getTag ( ) const
inlinefinalvirtual

Forward tag access to the derived class.

Implements mlir::tracing::Action.

Definition at line 87 of file Action.h.


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