MCPcopy Create free account
hub / github.com/UbiquitousLearning/mllm / getUniqueModuleName

Method getUniqueModuleName

mllm/compile/ir/Node.cpp:232–240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

230std::string IRContext::getAutoIndexedValueName() { return std::to_string(auto_indexed_value_name_cnt_++); }
231
232std::string IRContext::getUniqueModuleName(const std::string& base_name) {
233 auto& counter = module_name_counters_[base_name];
234 if (counter == 0) {
235 counter = 1;
236 return base_name;
237 } else {
238 return base_name + "_" + std::to_string(counter++);
239 }
240}
241
242void IRContext::resetRegion(const region_ptr_t& region) { cur_insert_region_ = region; }
243

Callers 1

__traceMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected