|
|
@ -263,12 +263,17 @@ std::string CodeGenerator::EmitParameters(
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
size_t index = 0;
|
|
|
|
size_t index = 0;
|
|
|
|
|
|
|
|
std::vector<std::string> output_args;
|
|
|
|
for (auto id : output_ids) {
|
|
|
|
for (auto id : output_ids) {
|
|
|
|
if (intermediate_ids.find(id) == intermediate_ids.end()) {
|
|
|
|
if (intermediate_ids.find(id) == intermediate_ids.end()) {
|
|
|
|
ret << dtypes.at(id) << "* " << ArgName(id);
|
|
|
|
std::string args_str = dtypes.at(id) + "* " + ArgName(id);
|
|
|
|
if (index != output_ids.size() - 1) {
|
|
|
|
output_args.push_back(args_str);
|
|
|
|
ret << ", ";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
for (auto args : output_args) {
|
|
|
|
|
|
|
|
ret << args;
|
|
|
|
|
|
|
|
if (index != output_args.size() - 1) {
|
|
|
|
|
|
|
|
ret << ", ";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
index++;
|
|
|
|
index++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|