Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
d3886685
Commit
d3886685
authored
May 04, 2018
by
Paul
Browse files
Formatting
parent
4f2a71af
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
src/program.cpp
src/program.cpp
+2
-1
No files found.
src/program.cpp
View file @
d3886685
...
@@ -30,7 +30,8 @@ instruction_ref program::add_instruction(operation op, std::vector<instruction_r
...
@@ -30,7 +30,8 @@ instruction_ref program::add_instruction(operation op, std::vector<instruction_r
impl
->
instructions
.
push_back
({
op
,
r
,
args
});
impl
->
instructions
.
push_back
({
op
,
r
,
args
});
assert
(
impl
->
instructions
.
back
().
arguments
==
args
);
assert
(
impl
->
instructions
.
back
().
arguments
==
args
);
auto
result
=
std
::
prev
(
impl
->
instructions
.
end
());
auto
result
=
std
::
prev
(
impl
->
instructions
.
end
());
for
(
auto
&&
arg
:
args
)
arg
->
output
.
push_back
(
result
);
for
(
auto
&&
arg
:
args
)
arg
->
output
.
push_back
(
result
);
return
result
;
return
result
;
}
}
...
...
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