CIRCT 20.0.0git
|
#include <ArcCostModel.h>
Public Member Functions | |
OperationCosts | getCost (Operation *op) |
Private Member Functions | |
OperationCosts | computeOperationCost (Operation *op) |
OperationCosts | getInputVectorsCost (VectorizeOp vecOp) |
size_t | getShufflingCost (const ValueRange &inputVec, bool isSame=false) |
Private Attributes | |
DenseMap< Operation *, OperationCosts > | opCostCache |
Definition at line 38 of file ArcCostModel.h.
|
private |
Definition at line 36 of file ArcCostModel.cpp.
References computeOperationCost(), CONCATCOST, EXTRACTCOST, getInputVectorsCost(), circt::arc::OperationCosts::normalCost, NORMALCOST, opCostCache, circt::arc::OperationCosts::packingCost, circt::arc::OperationCosts::shufflingCost, circt::arc::OperationCosts::totalCost(), and circt::arc::OperationCosts::vectorizeOpsBodyCost.
Referenced by computeOperationCost(), and getCost().
OperationCosts ArcCostModel::getCost | ( | Operation * | op | ) |
Definition at line 32 of file ArcCostModel.cpp.
References computeOperationCost().
|
private |
Definition at line 76 of file ArcCostModel.cpp.
References getShufflingCost(), PACKCOST, circt::arc::OperationCosts::packingCost, SAMEVECTORNOSHUFFLE, and circt::arc::OperationCosts::shufflingCost.
Referenced by computeOperationCost().
|
private |
Definition at line 102 of file ArcCostModel.cpp.
References DIFFERENTVECTORNOSHUFFLE, DIFFERENTVECTORSHUFFLECOST, PACKCOST, and SAMEVECTORSHUFFLECOST.
Referenced by getInputVectorsCost().
|
private |
Definition at line 56 of file ArcCostModel.h.
Referenced by computeOperationCost().