mirror of
https://github.com/YosysHQ/yosys
synced 2026-07-17 04:35:44 +00:00
WIP
This commit is contained in:
parent
8e522b08c0
commit
afdae7b87e
49 changed files with 1258 additions and 891 deletions
|
|
@ -10,17 +10,28 @@ using namespace RTLIL;
|
|||
|
||||
template class CellAdderMixin<Patch>;
|
||||
|
||||
Cell* Patch::addCell(TwineRef name, IdString type) {
|
||||
Cell* Patch::addCell(TwineRef name, TwineRef type) {
|
||||
cells_.push_back(std::make_unique<Cell>(Cell::ConstructToken{}));
|
||||
|
||||
Cell* cell = cells_.back().get();
|
||||
cell->type = type;
|
||||
cell->type_impl = type;
|
||||
cell->module = nullptr;
|
||||
staged_cell_names_[cell] = name;
|
||||
return cell;
|
||||
}
|
||||
|
||||
Cell* Patch::addCell(Twine &&name, IdString type) {
|
||||
// Cell* Patch::addCell(TwineRef name, IdString type) {
|
||||
// static TwinePool s_pool;
|
||||
// TwineRef tref = s_pool.lookup(type.str());
|
||||
// log_assert(tref != Twine::Null);
|
||||
// return addCell(name, tref);
|
||||
// }
|
||||
|
||||
Cell* Patch::addCell(TwineRef name, Twine &&type) {
|
||||
return addCell(name, twine_staging.add(std::move(type)));
|
||||
}
|
||||
|
||||
Cell* Patch::addCell(Twine &&name, TwineRef type) {
|
||||
return addCell(twine_staging.add(std::move(name)), type);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue