| 351 | } |
| 352 | |
| 353 | void Mutation::AddControllingFanin(MutableNodeView* node, |
| 354 | absl::string_view fanin_node_name) { |
| 355 | AddMutation(node, [node, fanin_node_name](MutableNodeViewDiff* diff) { |
| 356 | auto it = node->controlling_fanins_index_.find(fanin_node_name); |
| 357 | const int control_index = it != node->controlling_fanins_index_.end() |
| 358 | ? it->second |
| 359 | : internal::kMissingIndex; |
| 360 | internal::AddControllingFanin(diff, control_index, fanin_node_name); |
| 361 | }); |
| 362 | } |
| 363 | |
| 364 | void Mutation::AddControllingFanin(const MutationNewNode& node, |
| 365 | absl::string_view fanin_node_name) { |