|
12 | 12 | #include <utility> |
13 | 13 | #include <vector> |
14 | 14 |
|
| 15 | +#include "odb/PtrSetMap.h" |
15 | 16 | #include "odb/db.h" |
16 | 17 | #include "odb/geom.h" |
17 | 18 | #include "utl/Logger.h" |
@@ -114,7 +115,7 @@ class TritonCTS |
114 | 115 | void populateTritonCTS(); |
115 | 116 | void destroyClockModNet(sta::Pin* pin_driver); |
116 | 117 | void writeClockNetsToDb(TreeBuilder* builder, |
117 | | - std::set<odb::dbNet*>& clkLeafNets); |
| 118 | + odb::PtrSet<odb::dbNet>& clkLeafNets); |
118 | 119 | void writeClockNDRsToDb(TreeBuilder* builder); |
119 | 120 | int getNetSpacing(odb::dbTechLayer* layer, int width1, int width2); |
120 | 121 | void incrementNumClocks() { ++numberOfClocks_; } |
@@ -187,7 +188,7 @@ class TritonCTS |
187 | 188 | Clock& clockNet); |
188 | 189 | odb::dbITerm* getFirstInput(odb::dbInst* inst) const; |
189 | 190 | odb::dbITerm* getSingleOutput(odb::dbInst* inst, odb::dbITerm* input) const; |
190 | | - void findClockRoots(sta::Clock* clk, std::set<odb::dbNet*>& clockNets); |
| 191 | + void findClockRoots(sta::Clock* clk, odb::PtrSet<odb::dbNet>& clockNets); |
191 | 192 | float getInputPinCap(odb::dbITerm* iterm); |
192 | 193 | bool isSink(odb::dbITerm* iterm); |
193 | 194 | ClockInst* getClockFromInst(odb::dbInst* inst); |
@@ -224,11 +225,11 @@ class TritonCTS |
224 | 225 | rsz::Resizer* resizer_ = nullptr; |
225 | 226 | est::EstimateParasitics* estimate_parasitics_ = nullptr; |
226 | 227 | std::vector<std::unique_ptr<TreeBuilder>> builders_; |
227 | | - std::set<odb::dbNet*> staClockNets_; |
228 | | - std::set<odb::dbNet*> visitedClockNets_; |
229 | | - std::map<odb::dbInst*, ClockInst*> inst2clkbuf_; |
| 228 | + odb::PtrSet<odb::dbNet> staClockNets_; |
| 229 | + odb::PtrSet<odb::dbNet> visitedClockNets_; |
| 230 | + odb::PtrMap<odb::dbInst, ClockInst*> inst2clkbuf_; |
230 | 231 | std::map<ClockInst*, ClockSubNet*> driver2subnet_; |
231 | | - std::map<odb::dbNet*, TreeBuilder*> net2builder_; |
| 232 | + odb::PtrMap<odb::dbNet, TreeBuilder*> net2builder_; |
232 | 233 |
|
233 | 234 | // db vars |
234 | 235 | odb::dbDatabase* db_ = nullptr; |
|
0 commit comments