3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2026-08-11 08:29:34 +00:00
yosys/kernel/unstable/patch.cc
Emil J. Tywoniak 77dd01edfc patcher: start
2026-07-17 23:47:08 +02:00

21 lines
No EOL
487 B
C++

#include "kernel/unstable/patch.h"
YOSYS_NAMESPACE_BEGIN
using namespace RTLIL;
Cell* Patch::addCell(IdString name, IdString type) {
auto& cell = cells_.emplace_back();
cell.name = std::move(name);
cell.type = type;
return &cell;
}
// RTLIL::Cell *RTLIL::Module::addCell(RTLIL::IdString name, RTLIL::IdString type)
// {
// RTLIL::Cell *cell = new RTLIL::Cell;
// cell->name = std::move(name);
// cell->type = type;
// add(cell);
// return cell;
// }
YOSYS_NAMESPACE_END