MCPcopy Create free account
hub / github.com/ROCm/AMDMIGraphX / cpp_var_name

Function cpp_var_name

src/module.cpp:1306–1312  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1304}
1305
1306static std::string cpp_var_name(const std::string& name)
1307{
1308 std::string prefix = "x_";
1309 if(not contains(name, "@"))
1310 prefix = "p_";
1311 return to_c_id(prefix + replace_string(name, ":", "_module_"));
1312}
1313
1314static void print_py_op(std::ostream& os, const operation& op)
1315{

Callers 2

print_pyMethod · 0.85
print_cppMethod · 0.85

Calls 3

containsFunction · 0.85
to_c_idFunction · 0.85
replace_stringFunction · 0.85

Tested by

no test coverage detected