| 82 | } |
| 83 | |
| 84 | absl::string_view OpOrArgNameMapper::GetUniqueNameView(OpOrVal op_or_val) { |
| 85 | auto& name = op_or_val_to_name_[op_or_val]; |
| 86 | if (!name.empty()) return name; |
| 87 | // Update the value in the map with unique name. |
| 88 | name = StringRefToView(GetUniqueName(GetName(op_or_val))); |
| 89 | return name; |
| 90 | } |
| 91 | |
| 92 | int OpOrArgNameMapper::InitOpName(OpOrVal op_or_val, llvm::StringRef name) { |
| 93 | auto it = name_to_count_.try_emplace(name, 0); |
nothing calls this directly
no test coverage detected