Skip to content

Commit

Permalink
Revert changes to celltypes.h.
Browse files Browse the repository at this point in the history
  • Loading branch information
rmlarsen committed Oct 3, 2023
1 parent 058973f commit 7b454d4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions kernel/celltypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ struct CellTypes
setup_stdcells_mem();
}

void setup_type(const RTLIL::IdString& type, const pool<RTLIL::IdString> &inputs, const pool<RTLIL::IdString> &outputs, bool is_evaluable = false)
void setup_type(RTLIL::IdString type, const pool<RTLIL::IdString> &inputs, const pool<RTLIL::IdString> &outputs, bool is_evaluable = false)
{
CellType ct = {type, inputs, outputs, is_evaluable};
cell_types[ct.type] = ct;
Expand Down Expand Up @@ -298,24 +298,24 @@ struct CellTypes
cell_types.clear();
}

bool cell_known(const RTLIL::IdString& type) const
bool cell_known(RTLIL::IdString type) const
{
return cell_types.count(type) != 0;
}

bool cell_output(const RTLIL::IdString& type, const RTLIL::IdString& port) const
bool cell_output(RTLIL::IdString type, RTLIL::IdString port) const
{
auto it = cell_types.find(type);
return it != cell_types.end() && it->second.outputs.count(port) != 0;
}

bool cell_input(const RTLIL::IdString& type, const RTLIL::IdString& port) const
bool cell_input(RTLIL::IdString type, RTLIL::IdString port) const
{
auto it = cell_types.find(type);
return it != cell_types.end() && it->second.inputs.count(port) != 0;
}

bool cell_evaluable(const RTLIL::IdString& type) const
bool cell_evaluable(RTLIL::IdString type) const
{
auto it = cell_types.find(type);
return it != cell_types.end() && it->second.is_evaluable;
Expand Down

0 comments on commit 7b454d4

Please sign in to comment.