MLIR 22.0.0git
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.
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.
virtual void print (raw_ostream &os) const
virtual ArrayRef< IRUnitgetContextIRUnits () const
 Return the set of IR units that are associated with this action.

Static Public Member Functions

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

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.
ArrayRef< IRUnitirUnits
 Set of IR units (operations, regions, blocks, values) that are associated with this action.

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:

  • static constexpr StringLiteral tag = "...";
    • This method returns a unique string identifier, similar to a command line flag or DEBUG_TYPE.

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

◆ 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: