CIRCT 24.0.0git
Loading...
Searching...
No Matches
Public Member Functions | List of all members
circt::hw::HWModulePortTypeInterface Struct Reference

#include <HWTypes.h>

Inheritance diagram for circt::hw::HWModulePortTypeInterface:
Inheritance graph
[legend]
Collaboration diagram for circt::hw::HWModulePortTypeInterface:
Collaboration graph
[legend]

Public Member Functions

 HWModulePortTypeInterface (mlir::Dialect *dialect)
 
virtual mlir::LogicalResult verifyHWModulePortType (llvm::function_ref< mlir::InFlightDiagnostic()> emitError, ModulePort::Direction direction, mlir::Type type) const
 Return failure if type is not valid for a module port with the given direction.
 

Detailed Description

Definition at line 37 of file HWTypes.h.

Constructor & Destructor Documentation

◆ HWModulePortTypeInterface()

circt::hw::HWModulePortTypeInterface::HWModulePortTypeInterface ( mlir::Dialect *  dialect)
inline

Definition at line 39 of file HWTypes.h.

Member Function Documentation

◆ verifyHWModulePortType()

virtual mlir::LogicalResult circt::hw::HWModulePortTypeInterface::verifyHWModulePortType ( llvm::function_ref< mlir::InFlightDiagnostic()>  emitError,
ModulePort::Direction  direction,
mlir::Type  type 
) const
inlinevirtual

Return failure if type is not valid for a module port with the given direction.

Dialects can implement this to restrict non-HW-value handle types in HW module signatures.

Definition at line 44 of file HWTypes.h.


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