CIRCT  19.0.0git
Public Member Functions | List of all members
circt::arc::RuntimeCostEstimateDialectInterface Class Referenceabstract

A dialect interface to get runtime cost estimates of MLIR operations. More...

#include <ArcInterfaces.h>

Inheritance diagram for circt::arc::RuntimeCostEstimateDialectInterface:
Inheritance graph
[legend]
Collaboration diagram for circt::arc::RuntimeCostEstimateDialectInterface:
Collaboration graph
[legend]

Public Member Functions

 RuntimeCostEstimateDialectInterface (mlir::Dialect *dialect)
 
virtual uint32_t getCostEstimate (mlir::Operation *op) const =0
 Returns a number indicating the expected number of cycles the given operation will take to execute on hardware times 10 (to allow a bit more fine tuning for high-throughput operations) More...
 

Detailed Description

A dialect interface to get runtime cost estimates of MLIR operations.

This is useful for implementing heuristics in optimization passes.

Definition at line 38 of file ArcInterfaces.h.

Constructor & Destructor Documentation

◆ RuntimeCostEstimateDialectInterface()

circt::arc::RuntimeCostEstimateDialectInterface::RuntimeCostEstimateDialectInterface ( mlir::Dialect *  dialect)
inline

Definition at line 41 of file ArcInterfaces.h.

Member Function Documentation

◆ getCostEstimate()

virtual uint32_t circt::arc::RuntimeCostEstimateDialectInterface::getCostEstimate ( mlir::Operation *  op) const
pure virtual

Returns a number indicating the expected number of cycles the given operation will take to execute on hardware times 10 (to allow a bit more fine tuning for high-throughput operations)


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