Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
2e52b18c
Commit
2e52b18c
authored
Nov 20, 2023
by
Paul
Browse files
Fix names
parent
e189e5ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/cpp_generator.cpp
src/cpp_generator.cpp
+2
-2
No files found.
src/cpp_generator.cpp
View file @
2e52b18c
...
@@ -49,7 +49,7 @@ cpp_generator::function::set_body(const module& m, const cpp_generator::generate
...
@@ -49,7 +49,7 @@ cpp_generator::function::set_body(const module& m, const cpp_generator::generate
if
(
ins
->
name
()
==
"@param"
)
if
(
ins
->
name
()
==
"@param"
)
{
{
names
[
ins
]
=
names
[
ins
]
=
migraphx
::
any_cast
<
migraphx
::
builtin
::
param
>
(
ins
->
get_operator
()).
parameter
;
to_c_id
(
migraphx
::
any_cast
<
migraphx
::
builtin
::
param
>
(
ins
->
get_operator
()).
parameter
)
;
}
}
else
if
(
ins
->
name
()
==
"@return"
)
else
if
(
ins
->
name
()
==
"@return"
)
{
{
...
@@ -237,7 +237,7 @@ cpp_generator::to_args(const std::vector<instruction_ref>& inputs,
...
@@ -237,7 +237,7 @@ cpp_generator::to_args(const std::vector<instruction_ref>& inputs,
{
{
std
::
vector
<
std
::
string
>
args
;
std
::
vector
<
std
::
string
>
args
;
std
::
transform
(
inputs
.
begin
(),
inputs
.
end
(),
std
::
back_inserter
(
args
),
[
&
](
auto
i
)
{
std
::
transform
(
inputs
.
begin
(),
inputs
.
end
(),
std
::
back_inserter
(
args
),
[
&
](
auto
i
)
{
return
to_c_id
(
names
.
at
(
i
)
)
;
return
names
.
at
(
i
);
});
});
return
args
;
return
args
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment