CIRCT 24.0.0git
Loading...
Searching...
No Matches
circt::hw::StmtVisitor< ConcreteType, ResultType, ExtraArgs > Class Template Reference

This helps visit TypeOp nodes. More...

#include <HWVisitors.h>

Public Member Functions

ResultType dispatchStmtVisitor (Operation *op, ExtraArgs... args)
ResultType visitInvalidStmt (Operation *op, ExtraArgs... args)
 This callback is invoked on any non-expression operations.
ResultType visitUnhandledTypeOp (Operation *op, ExtraArgs... args)
 This callback is invoked on any combinational operations that are not handled by the concrete visitor.
ResultType visitBinaryTypeOp (Operation *op, ExtraArgs... args)
 This fallback is invoked on any binary node that isn't explicitly handled.
ResultType visitUnaryTypeOp (Operation *op, ExtraArgs... args)
 HANDLE (OutputOp, Unhandled)
 HANDLE (InstanceOp, Unhandled)
 HANDLE (TypeScopeOp, Unhandled)
 HANDLE (TypedeclOp, Unhandled)

Detailed Description

template<typename ConcreteType, typename ResultType = void, typename... ExtraArgs>
class circt::hw::StmtVisitor< ConcreteType, ResultType, ExtraArgs >

This helps visit TypeOp nodes.

Definition at line 89 of file HWVisitors.h.

Member Function Documentation

◆ dispatchStmtVisitor()

template<typename ConcreteType, typename ResultType = void, typename... ExtraArgs>
ResultType circt::hw::StmtVisitor< ConcreteType, ResultType, ExtraArgs >::dispatchStmtVisitor ( Operation * op,
ExtraArgs... args )
inline

Definition at line 91 of file HWVisitors.h.

◆ HANDLE() [1/4]

template<typename ConcreteType, typename ResultType = void, typename... ExtraArgs>
circt::hw::StmtVisitor< ConcreteType, ResultType, ExtraArgs >::HANDLE ( InstanceOp ,
Unhandled  )

◆ HANDLE() [2/4]

template<typename ConcreteType, typename ResultType = void, typename... ExtraArgs>
circt::hw::StmtVisitor< ConcreteType, ResultType, ExtraArgs >::HANDLE ( OutputOp ,
Unhandled  )

◆ HANDLE() [3/4]

template<typename ConcreteType, typename ResultType = void, typename... ExtraArgs>
circt::hw::StmtVisitor< ConcreteType, ResultType, ExtraArgs >::HANDLE ( TypedeclOp ,
Unhandled  )

◆ HANDLE() [4/4]

template<typename ConcreteType, typename ResultType = void, typename... ExtraArgs>
circt::hw::StmtVisitor< ConcreteType, ResultType, ExtraArgs >::HANDLE ( TypeScopeOp ,
Unhandled  )

◆ visitBinaryTypeOp()

template<typename ConcreteType, typename ResultType = void, typename... ExtraArgs>
ResultType circt::hw::StmtVisitor< ConcreteType, ResultType, ExtraArgs >::visitBinaryTypeOp ( Operation * op,
ExtraArgs... args )
inline

This fallback is invoked on any binary node that isn't explicitly handled.

The default implementation delegates to the 'unhandled' fallback.

Definition at line 117 of file HWVisitors.h.

References visitUnhandledTypeOp().

◆ visitInvalidStmt()

template<typename ConcreteType, typename ResultType = void, typename... ExtraArgs>
ResultType circt::hw::StmtVisitor< ConcreteType, ResultType, ExtraArgs >::visitInvalidStmt ( Operation * op,
ExtraArgs... args )
inline

This callback is invoked on any non-expression operations.

Definition at line 104 of file HWVisitors.h.

◆ visitUnaryTypeOp()

template<typename ConcreteType, typename ResultType = void, typename... ExtraArgs>
ResultType circt::hw::StmtVisitor< ConcreteType, ResultType, ExtraArgs >::visitUnaryTypeOp ( Operation * op,
ExtraArgs... args )
inline

Definition at line 121 of file HWVisitors.h.

References visitUnhandledTypeOp().

◆ visitUnhandledTypeOp()

template<typename ConcreteType, typename ResultType = void, typename... ExtraArgs>
ResultType circt::hw::StmtVisitor< ConcreteType, ResultType, ExtraArgs >::visitUnhandledTypeOp ( Operation * op,
ExtraArgs... args )
inline

This callback is invoked on any combinational operations that are not handled by the concrete visitor.

Definition at line 111 of file HWVisitors.h.

Referenced by visitBinaryTypeOp(), and visitUnaryTypeOp().


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