|
| 1 | +40,41d39 |
| 2 | +< for (auto child : children) |
| 3 | +< delete child; |
| 4 | +45c43 |
| 5 | +< LibertyAst *LibertyAst::find(std::string name) |
| 6 | +--- |
| 7 | +> std::shared_ptr<LibertyAst> LibertyAst::find(std::string name) |
| 8 | +185c183 |
| 9 | +< LibertyAst *LibertyParser::parse() |
| 10 | +--- |
| 11 | +> std::shared_ptr<LibertyAst> LibertyParser::parse() |
| 12 | +225c223 |
| 13 | +< LibertyAst *ast = new LibertyAst; |
| 14 | +--- |
| 15 | +> auto ast = std::make_shared<LibertyAst>(); |
| 16 | +340c338 |
| 17 | +< LibertyAst *child = parse(); |
| 18 | +--- |
| 19 | +> auto child = parse(); |
| 20 | +409c407 |
| 21 | +< LibertyAst *find_non_null(LibertyAst *node, const char *name) |
| 22 | +--- |
| 23 | +> std::shared_ptr<LibertyAst> find_non_null(std::shared_ptr<LibertyAst> node, const char *name) |
| 24 | +411c409 |
| 25 | +< LibertyAst *ret = node->find(name); |
| 26 | +--- |
| 27 | +> auto ret = node->find(name); |
| 28 | +458c456 |
| 29 | +< void event2vl(LibertyAst *ast, std::string &edge, std::string &expr) |
| 30 | +--- |
| 31 | +> void event2vl(std::shared_ptr<LibertyAst> ast, std::string &edge, std::string &expr) |
| 32 | +492c490 |
| 33 | +< void gen_verilogsim_cell(LibertyAst *ast) |
| 34 | +--- |
| 35 | +> void gen_verilogsim_cell(std::shared_ptr<LibertyAst> ast) |
| 36 | +525,526c523,524 |
| 37 | +< LibertyAst *dir = find_non_null(child, "direction"); |
| 38 | +< LibertyAst *func = child->find("function"); |
| 39 | +--- |
| 40 | +> auto dir = find_non_null(child, "direction"); |
| 41 | +> auto func = child->find("function"); |
| 42 | +652c650 |
| 43 | +< void gen_verilogsim(LibertyAst *ast) |
| 44 | +--- |
| 45 | +> void gen_verilogsim(std::shared_ptr<LibertyAst> ast) |
0 commit comments