diff options
author | Clifford Wolf <clifford@clifford.at> | 2019-04-22 14:47:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-22 14:47:52 +0200 |
commit | 99d5435650c38fb96dc364c0fd4ac6250a4871ea (patch) | |
tree | cc638feaa89ef0be5acbc0f157dfc6764812fc11 /kernel/cost.h | |
parent | 0e7901e45cc54a9bf76a86dd58092f310f72c90a (diff) | |
parent | e19981ab6111765baa5b2ab7a16c92278130fd8b (diff) | |
download | yosys-99d5435650c38fb96dc364c0fd4ac6250a4871ea.tar.gz yosys-99d5435650c38fb96dc364c0fd4ac6250a4871ea.tar.bz2 yosys-99d5435650c38fb96dc364c0fd4ac6250a4871ea.zip |
Merge pull request #905 from christian-krieg/feature/python_bindings
Feature/python bindings
Diffstat (limited to 'kernel/cost.h')
-rw-r--r-- | kernel/cost.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/cost.h b/kernel/cost.h index e795b571b..41a09eb63 100644 --- a/kernel/cost.h +++ b/kernel/cost.h @@ -26,7 +26,7 @@ YOSYS_NAMESPACE_BEGIN int get_cell_cost(RTLIL::Cell *cell, dict<RTLIL::IdString, int> *mod_cost_cache = nullptr); -int get_cell_cost(RTLIL::IdString type, const dict<RTLIL::IdString, RTLIL::Const> ¶meters = dict<RTLIL::IdString, RTLIL::Const>(), +inline int get_cell_cost(RTLIL::IdString type, const dict<RTLIL::IdString, RTLIL::Const> ¶meters = dict<RTLIL::IdString, RTLIL::Const>(), RTLIL::Design *design = nullptr, dict<RTLIL::IdString, int> *mod_cost_cache = nullptr) { static dict<RTLIL::IdString, int> gate_cost = { @@ -76,7 +76,7 @@ int get_cell_cost(RTLIL::IdString type, const dict<RTLIL::IdString, RTLIL::Const return 1; } -int get_cell_cost(RTLIL::Cell *cell, dict<RTLIL::IdString, int> *mod_cost_cache) +inline int get_cell_cost(RTLIL::Cell *cell, dict<RTLIL::IdString, int> *mod_cost_cache) { return get_cell_cost(cell->type, cell->parameters, cell->module->design, mod_cost_cache); } |