9 #ifndef CIRCT_DIALECT_ARC_ARCCOSTMODEL_H
10 #define CIRCT_DIALECT_ARC_ARCCOSTMODEL_H
13 #include "mlir/IR/Operation.h"
14 #include "mlir/Pass/AnalysisManager.h"
23 size_t packingCost{0};
24 size_t shufflingCost{0};
25 size_t vectorizeOpsBodyCost{0};
27 return normalCost + packingCost + shufflingCost + vectorizeOpsBodyCost;
55 size_t getShufflingCost(
const ValueRange &inputVec,
bool isSame =
false);
DenseMap< Operation *, OperationCosts > opCostCache
The InstanceGraph op interface, see InstanceGraphInterface.td for more details.
OperationCosts & operator+=(const OperationCosts &other)
size_t vectorizeOpsBodyCost