16 #include "mlir/IR/Operation.h"
18 using namespace circt;
19 using namespace analysis;
22 mlir::AnalysisManager &am) {
23 moduleOp->walk([&](Operation *op) {
24 auto opName = op->getName();
34 SmallVector<OperationName> opNames;
36 opNames.push_back(pair.first);
44 DenseMap<size_t, size_t>
size_t getOpCount(OperationName opName)
Get the frequency of operations of a specific name.
DenseMap< size_t, size_t > getOperandCountMap(OperationName opName)
Get a map from number of operands to corresponding frequency for the given operation.
DenseMap< OperationName, DenseMap< size_t, size_t > > operandCounts
DenseMap< OperationName, size_t > opCounts
SmallVector< OperationName > getFoundOpNames()
Get the names of all distinct operations found by the analysis.
OpCountAnalysis(Operation *moduleOp, mlir::AnalysisManager &am)
The InstanceGraph op interface, see InstanceGraphInterface.td for more details.